# Outline Effect Controller

Outline effect is built-in highlight effect for Tutorial Factory. You could always use your own highlight effect and some other good assets, such as Highlight Plus from Kronnect.

{% hint style="info" %}
Please use OutlineEffectControllerURP for the URP render pipeline. Remember to add Outline Render feature to the URP render pipeline asset.
{% endhint %}

## Setup OutlineEffectController

1. Create a new GameObject and add OutlineEffectController component to the gameobject.&#x20;
2. Assign camera to Camera to have highlight effect.
3. Set Buffer Draw Event to 'Before Image Effects'.
4. Adjust Downsample and Blur Size if you want to have different look.&#x20;
5. Adjust Color to your own choice. Remember to reduce alpha of color to show original object.
6. Now you should have outline effect by checking 'Highlight Target' on [#targets](https://hsv-studio.gitbook.io/tutorial-factory/tutorials-objects#targets "mention").

![Picture 1. Outline Effect Controller](https://2526158861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG18qhsfnlekFiCYWyYsZ%2Fuploads%2FYqsAleCKpx3XYKQBIOv9%2FScreen%20Shot%202022-04-13%20at%203.29.46%20PM.png?alt=media\&token=27891b98-26be-45a0-aaf2-2f295f9047ea)

## Setup OutlineEffectController in URP

1. Unpack 'Tutorial Factory URP.unitypackage' in the package.&#x20;
2. Add Outline Renderer Feature to the renderer asset data file(Picture 2).
3. Setup layer mask to include highlight objects' layers.
4. Assign Assets/HSVStudio Tutorial Factory/Materials/OutlineURP.mat material to the 'Highlight Material' field(Picture 4).
5. Change color to your own choice.&#x20;
6. Adjust outline strength and blur size accordingly.&#x20;
7. Now you should have Outline Effect in URP when 'Highlight Target' option is checked.

![Picture 2. Setup Outline Renderer URP](https://2526158861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG18qhsfnlekFiCYWyYsZ%2Fuploads%2FbAQC9dLtO2uPto3zsNLd%2FScreen%20Shot%202022-04-13%20at%203.09.28%20PM.png?alt=media\&token=b96e8be9-73af-428f-8d6e-b56bce67f001)

![Picture 3. Outline Renderer Setup](https://2526158861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG18qhsfnlekFiCYWyYsZ%2Fuploads%2FhkaQn7o9PmX60bHDzfR3%2FScreen%20Shot%202022-04-13%20at%203.11.14%20PM.png?alt=media\&token=b7f3ae33-8fbf-4ee0-b305-f23fe0518655)

![Picture 4. Outline Material](https://2526158861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG18qhsfnlekFiCYWyYsZ%2Fuploads%2Fi6jvUUhEPq5oWQ2lYq0H%2FScreen%20Shot%202022-04-13%20at%203.21.44%20PM.png?alt=media\&token=d93702d6-0656-4d7f-b625-c933282b7c23)
