Skip to main content

Scripting

Namespace

The namespace
using ChocDino.UIFX;

Adding the DropShadowFilter Component

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

shadow.Mode = DropShadowMode.Default;
shadow.Angle = 135f;
shadow.Distance = 8f;
shadow.Color = Color.black;
shadow.Downsample = Downsample.Auto;
shadow.Blur = 4f;
shadow.Hardness = 1f;
shadow.SourceAlpha = 1f;
shadow.Strength = 1f;