跳至主要内容

Class MotionBlurSimple

The MotionBlurSimple component is a visual effect that can be applied to any UI (uGUI) components to create an approximate motion blur effect when the UI components are in motion.

Assembly: ChocDino.UIFX.dll
Declaration
[RequireComponent(typeof(Graphic))]
[HelpURL("https://www.chocdino.com/products/unity-assets/")]
[AddComponentMenu("UI/Chocolate Dinosaur UIFX/Effects/UIFX - Motion Blur (Simple)")]
public class MotionBlurSimple : UIBehaviour, IMeshModifier

Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour -> UnityEngine.EventSystems.UIBehaviour

Implements:
UnityEngine.UI.IMeshModifier

Properties

UpdateMode

Property UpdateMode sets which vertex modifiers are used to calculate the motion blur

Declaration
public VertexModifierSource UpdateMode { get; set; }

SampleCount

Property SampleCount sets the number of motion blur steps to calculate. The higher the number the more expensive the effect.

Declaration
public int SampleCount { get; set; }

BlendStrength

Property BlendStrength controls how transparent the motion blur is.

Declaration
public float BlendStrength { get; set; }

Fields

GlobalDebugTint

Global debugging option to tint the colour of the motion blur mesh to magenta. Can be used to tell when the effect is being applied

Declaration
public static bool GlobalDebugTint

GlobalDebugFreeze

Global option to freeze updating of the mesh, useful for seeing the motion blur

Declaration
public static bool GlobalDebugFreeze

GlobalDisabled

Global option to disable this effect from being applied

Declaration
public static bool GlobalDisabled

Implements

  • UnityEngine.UI.IMeshModifier