# Unified Outline

A component was created (All1CreateUnifiedOutline) to automate the sprite duplication task that is usually used to create a Unified Outline. This effect is achieved by adding an additional sprite behind each original sprite we want to outline:

<figure><img src="/files/cfeNMlkdCtpJoBs4xoGH" alt=""><figcaption></figcaption></figure>

(Example available in the Demo scene)

With the All1CreateUnifiedOutline component we can do that automatically by adding it to the parent gameobject of the hierarchy we want to outline:

<figure><img src="/files/caqiWFmqH21Xs8NvJsdQ" alt=""><figcaption></figcaption></figure>

To use it we need to add an Outline Material to the first slot. We can do so by saving a material with the desired outline (see Component Features if you don’t know how). The Outline Parent Transform is optional. If added, all the new outline gameobjects will be placed under this transform, otherwise the duplicates will be placed under the gameobject they’ve been duplicated from.

The next 2 properties are used to set the order in layer and sorting layer of the outline sprites. We’ll want to place them behind the original sprite. But it’s up to you what order in layer and sorting layer they use.

To create the Unified Outline press the Create Unified Outline checkbox. This will set up everything for you and will then delete the component.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seasidestudios.gitbook.io/seaside-studios/sprite-shader/unified-outline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
