Skip to main content

Class LongShadowFilter

A long shadow filter for uGUI components

Assembly: ChocDino.UIFX.dll
Declaration
[AddComponentMenu("UI/Chocolate Dinosaur UIFX/Filters/UIFX - Long Shadow Filter")]
public class LongShadowFilter : 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

Angle

The clockwise angle the shadow is cast at. Range is [0..360]. Default is 135.0

Declaration
public float Angle { get; set; }

Distance

The distance the shadow is cast. Range is [0..512]. Default is 32

Declaration
public float Distance { get; set; }

Pivot

The pivot can be used for animating the shadow. A value of -1 means the front is located at the position of the back. A value of 0.0 means the front and back are at their furthest distance apart. A value of 1.0 means the back is located at the position of the front. Range is [-1..1]. Default is 0.0

Declaration
public float Pivot { get; set; }

ColorFront

The color of the main/front of the shadow

Declaration
public Color ColorFront { get; set; }

UseBackColor

The color of the main/front of the shadow

Declaration
public bool UseBackColor { get; set; }

ColorBack

The color of the back of the shadow

Declaration
public Color ColorBack { 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

Declaration
public float SourceAlpha { get; set; }

CompositeMode

The composite mode to use for rendering.

Declaration
public LongShadowCompositeMode CompositeMode { get; set; }

Implements

  • UnityEngine.UI.IMaterialModifier
  • UnityEngine.UI.IMeshModifier