Skip to main content

Class MotionBlurReal

The MotionBlurReal component is a visual effect that can be applied to any UI (uGUI) components to create an accurate 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 (Real)")]
public class MotionBlurReal : UIBehaviour, IMeshModifier, IMaterialModifier

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

Implements:
UnityEngine.UI.IMeshModifier, UnityEngine.UI.IMaterialModifier

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; }

Strength

Property Blend controls how large the motion blur effect is.

Declaration
public float Strength { 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
  • UnityEngine.UI.IMaterialModifier