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