Scripting
Namespace
The namespace
using ChocDino.UIFX;
Adding the LongShadowFilter Component
Add the LongShadowFilter component to your GameObject
// Add the component to your GameObject and set default properties
var shadow = AddComponent<LongShadowFilter>();
shadow.Method = LongShadowMethod.Normal;
shadow.Angle = 135f;
shadow.Distance = 8f;
shadow.StepSize = 1f;
shadow.FrontColor = Color.black;
shadow.UseBackColor = false;
shadow.BackColor = Color.clear;
shadow.Pivot = 0f;
shadow.SourceAlpha = 1f;
shadow.CompositeMode = LongShadowCompositeMode.Normal;
shadow.Strength = 1f;