Scripting
Namespace
The namespace
using ChocDino.UIFX;
Adding the GlowFilter Component
Add the GlowFilter component to your GameObject
// Add the component to your GameObject and set default properties
var glow = AddComponent<GlowFilter>();
glow.EdgeSide = EdgeSide.Both;
glow.DistanceShape = DistanceShape.Circle;
glow.MaxDistance = 128f;
glow.FalloffMode = GlowFalloffMode.Exponential;
glow.ExpFalloffEnergy = 4f;
glow.ExpFalloffPower = 2f;
glow.ExpFalloffOffset = 0f;
glow.FillMode = GlowFillMode.Color;
glow.Color = Color.White;
glow.Blur = 1f;
glow.Additive = 1f;
glow.SourceAlpha = 1f;
glow.Strength = 1f;