# Object Outlining

Using the Object Outlining component, you are able to change the following.  Please note that this Actions affect ALL Game Objects in a scene by applying a post processing filter to the Main Camera. The attributes avaliable to change are:

* Outline Colour
* Outline Width
* Outline Only (reduction of Object Colours)

Before you start using the of the Object Outlining Action, you must add the Camera Object Outline Script to the Main Camera. This can be done manually by dragging the Script from the components folder directly to the main camera game object. &#x20;

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-Lgr8A_fWXkQgSzmRlJf%2F-Lgr96mdspFQ9Y0Zb8zF%2Fcomponents3a.png?alt=media\&token=4a4fdac1-4cc2-4174-8bdd-a17ea3f61344)

Or by selecting the Component from the Component/Game Creator/Accessibilty menu.

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-Lgr8A_fWXkQgSzmRlJf%2F-Lgr9AAZiMaW3fyLFP03%2Fcomponents3.png?alt=media\&token=824cfc21-05d3-422e-9237-5b95da25a59f)

You can verify that this has been completed by viewing the Main Camera in the Unity Inspector Window. You only need one instance of this script in the scene, or if you have more than one Camera (not Camera Motors) and wish to apply the filters to each, then each camera will need the component.

{% hint style="danger" %}
The Camera Outline Component must be applied to the Main Camera for these Actions to work. However, if you enable an Action without applying the Camera Component, the Action will attempt to do it for you.
{% endhint %}

The settings available using the Object Outline Action are as follows;

* **Outline Colour:**  Selected Colour.
* **Outline Width:** from 0 to 3 (must be more than zero for Outline to be seen)
* **Only Outline:** from 0 to 3&#x20;

These values can be set in the Inspector using the Colour Selector or Sliders, or can be obtained from a GC Variable.&#x20;

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-Lgr8A_fWXkQgSzmRlJf%2F-Lgr9sFfSU1C-ZU5cV6Y%2Faction7.png?alt=media\&token=b22a7cb8-25d6-4b4a-a6fd-b1a150a8058a)

{% hint style="danger" %}
The width must be more than zero for Outline to be seen.
{% endhint %}

However, you must also Trigger the Enable Object Outline Actions. This can also be done in the Inspector or by using a Variable. This Action can also be used to turn off Object Outlines and revert the scene to it's original state.

![](https://1680659799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LauqCzuMnmk33t__Yp5%2F-Lgr8A_fWXkQgSzmRlJf%2F-Lgr9uvVTvQTXnnb1q1o%2Faction6.png?alt=media\&token=5e67a99a-489e-435f-b598-c2bd4d7dc74f)

By using Variables, you can combine these with a GC Slider in a UI Canvas, and allow the player to set their own preferences.&#x20;

{% hint style="success" %}
**Recommended Settings for players with Visual impairments:**

* Colour: **Black**
* Outline Width: **0.5**
* Only Outline: **0.0**
*

Or allow the player to choose their own values using an in-game settings panel.
{% endhint %}

{% hint style="info" %}
See the Examples Scenes and Settings Canvas provided with this Module.
{% endhint %}

{% hint style="warning" %}
An Object Outline Shader is also provided and is found in the Resources Folder. This is automatically included in your build.
{% endhint %}

