Class BlurFilter
A blur filter for uGUI components
Assembly: ChocDino.UIFX.dllβ
[ExecuteInEditMode]
[RequireComponent(typeof(Graphic))]
[HelpURL("https://www.chocdino.com/products/unity-assets/")]
[AddComponentMenu("UI/Chocolate Dinosaur UIFX/Filters/UIFX - Blur Filter")]
public class BlurFilter : UIBehaviour, IMaterialModifier, IMeshModifier
Inheritance: System.Object
-> UnityEngine.Object
-> UnityEngine.Component
-> UnityEngine.Behaviour
-> UnityEngine.MonoBehaviour
-> UnityEngine.EventSystems.UIBehaviour
Implements:
UnityEngine.UI.IMaterialModifier
, UnityEngine.UI.IMeshModifier
Propertiesβ
BlurAxes2Dβ
Which axes to blur
public BlurAxes2D BlurAxes2D { get; set; }
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; }
ApplyAlphaCurveβ
Toggle the use of the alpha curve to fade to transparent as blur Strength increases
public bool ApplyAlphaCurve { get; set; }
AlphaCurveβ
An optional curve to allow the Graphic to fade to transparent as the blur Strength property increases
public AnimationCurve AlphaCurve { get; set; }
Strengthβ
How much of the maximum blur effect to apply. Range [0..1] Default is 1.0
public float Strength { get; set; }
Fieldsβ
GlobalStrengthβ
A global scale for Strength which can be useful to easily adjust Strength across all instances of BlurFilter. Range [0..1] Default is 1.0
public static float GlobalStrength
Implementsβ
UnityEngine.UI.IMaterialModifier
UnityEngine.UI.IMeshModifier