Class DropShadowFilter
A drop shadow filter for uGUI components
Assembly: ChocDino.UIFX.dllβ
[ExecuteInEditMode]
[AddComponentMenu("UI/Chocolate Dinosaur UIFX/Filters/UIFX - Drop Shadow Filter")]
public class DropShadowFilter : 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β
Blurβ
The maximum size of the blur kernel as a fraction of the diagonal length. So 0.01 would be a kernel with pixel dimensions of 1% of the diagonal length.
public float Blur { get; set; }
SourceAlphaβ
The transparency of the source content. Set to zero to make only the outline show. Range is [0..1] Default is 1.0
public float SourceAlpha { get; set; }
Angleβ
The clockwise angle the shadow is cast at. Range is [0..360]. Default is 135.0
public float Angle { get; set; }
Distanceβ
The distance the shadow is cast. Range is [0..1]. Default is 0.03
public float Distance { get; set; }
Hardnessβ
The hardness of the shadow [0..2]. Default is 0.5
public float Hardness { get; set; }
Colorβ
The color of the shadow
public Color Color { get; set; }
Modeβ
The mode to use for rendering. Default casts the shadow outside, Inset casts the shadow inside.
public DropShadowMode Mode { get; set; }
Implementsβ
UnityEngine.UI.IMaterialModifier
UnityEngine.UI.IMeshModifier