Share via


RectMask2DFast Class

Definition

Overrides the RectMask2D.PerformClipping method to add extra checks before doing exhaustive culling on each maskable target.

public class RectMask2DFast : UnityEngine.UI.RectMask2D
type RectMask2DFast = class
    inherit RectMask2D
Public Class RectMask2DFast
Inherits RectMask2D
Inheritance
UnityEngine.UI.RectMask2D
RectMask2DFast
Derived

Constructors

RectMask2DFast()

Properties

ForceClip

Checks if all clip/mask targets needs to be re-culled. Setting this to true will force all clip/mask targets to update their culling state next frame.

Methods

OnCanvasHierarchyChanged() UnityEngine.UI.RectMask2D.OnCanvasHierarchyChanged
OnDidApplyAnimationProperties() UnityEngine.UI.RectMask2D.OnDidApplyAnimationProperties
OnEnable() UnityEngine.UI.RectMask2D.OnEnable
OnSetClipRect(MaskableGraphic)

Callback whenever the clip rect is mutated.

OnTransformParentChanged() UnityEngine.UI.RectMask2D.OnTransformParentChanged
OnValidate() UnityEngine.UI.RectMask2D.OnValidate
PerformClipping()

Improves the base class method by:

  • Checks if the canvas renderer has moved before exhaustive culling.
  • Interleaves UpdateClipSoftness so objects are not iterated over twice.
  • Adds a OnSetClipRect callback for derived classes to use.

Applies to