Skip to main content

Class DropShadowFilter

A drop shadow filter for uGUI components

Assembly: ChocDino.UIFX.dll
Declaration
[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.

Declaration
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

Declaration
public float SourceAlpha { get; set; }

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..1]. Default is 0.03

Declaration
public float Distance { get; set; }

Hardness

The hardness of the shadow [0..2]. Default is 0.5

Declaration
public float Hardness { get; set; }

Color

The color of the shadow

Declaration
public Color Color { get; set; }

Mode

The mode to use for rendering. Default casts the shadow outside, Inset casts the shadow inside.

Declaration
public DropShadowMode Mode { get; set; }

Implements

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