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