Class GlowFilter
A glow filter for uGUI components
Assembly: ChocDino.UIFX.dll
[AddComponentMenu("UI/Chocolate Dinosaur UIFX/Filters/UIFX - Glow Filter")]
public class GlowFilter : FilterBase, IMaterialModifier, IMeshModifier
Inheritance: System.Object
-> UnityEngine.Object
-> UnityEngine.Component
-> UnityEngine.Behaviour
-> UnityEngine.MonoBehaviour
-> UnityEngine.EventSystems.UIBehaviour
-> ChocDino.UIFX.FilterBase
Implements:
UnityEngine.UI.IMaterialModifier
, UnityEngine.UI.IMeshModifier
Properties
EdgeSide
Which side of the edge to use for the glow.
public EdgeSide EdgeSide { get; set; }
DistanceShape
The shape that the glow grows in.
public DistanceShape DistanceShape { get; set; }
MaxDistance
public float MaxDistance { get; set; }
FalloffMode
public GlowFalloffMode FalloffMode { get; set; }
ExpFalloffEnergy
public float ExpFalloffEnergy { get; set; }
ExpFalloffPower
public float ExpFalloffPower { get; set; }
ExpFalloffOffset
public float ExpFalloffOffset { get; set; }
FalloffCurve
public AnimationCurve FalloffCurve { get; set; }
FalloffCurveGamma
public float FalloffCurveGamma { get; set; }
FillMode
public GlowFillMode FillMode { get; set; }
Color
The color of the glow.
public Color Color { get; set; }
GradientTexture
The color of the back of the extrusion
public Texture GradientTexture { get; set; }
Gradient
The gradient to color the distance from the edge.
public Gradient Gradient { get; set; }
GradientOffset
public float GradientOffset { get; set; }
GradientGamma
public float GradientGamma { get; set; }
GradientReverse
public bool GradientReverse { get; set; }
Blur
The radius of the blur filter in pixels.
public float Blur { get; set; }
Additive
How additive to make the glow. Zero will apply an alpha blend, One will apply an additive blend.
public float Additive { get; set; }
SourceAlpha
The transparency of the source content. Set to zero to make only the glow show. Range is [0..1] Default is 1.0
public float SourceAlpha { get; set; }
Methods
GetDisplayShaderPath()
protected override string GetDisplayShaderPath()
Returns
System.String
DoParametersModifySource()
protected override bool DoParametersModifySource()
Returns
System.Boolean
OnEnable()
protected override void OnEnable()
OnDisable()
protected override void OnDisable()
GetFilterAdjustSize(ref Vector2Int, ref Vector2Int)
protected override void GetFilterAdjustSize(ref Vector2Int leftDown, ref Vector2Int rightUp)
Parameters
Type | Name |
---|---|
UnityEngine.Vector2Int | leftDown |
UnityEngine.Vector2Int | rightUp |
SetupDisplayMaterial(Texture, Texture)
protected override void SetupDisplayMaterial(Texture source, Texture result)
Parameters
Type | Name |
---|---|
UnityEngine.Texture | source |
UnityEngine.Texture | result |
RenderFilters(RenderTexture)
protected override RenderTexture RenderFilters(RenderTexture source)
Returns
UnityEngine.RenderTexture
Parameters
Type | Name |
---|---|
UnityEngine.RenderTexture | source |
Implements
UnityEngine.UI.IMaterialModifier
UnityEngine.UI.IMeshModifier