Skip to main content

Scripting

Namespace

The namespace
using ChocDino.UIFX;

Adding the OutlineFilter Component

Add the OutlineFilter component to your GameObject
// Add the component to your GameObject and set default properties
var outline = AddComponent<OutlineFilter>();

outline.Method = OutlineMethod.DistanceMap;
outline.DistanceShape = DistanceShape.Circle;
outline.Direction = OutlineDirection.Outside;
outline.Size = 4f;
outline.Softness = 2f;
outline.Blur = 0f;
outline.Color = Color.black;
outline.SourceAlpha = 1f;
outline.Strength = 1f;