A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.UI.CanvasUpdateRegistry.html below:

Class CanvasUpdateRegistry

A place where CanvasElements can register themselves for rebuilding.

Inheritance

CanvasUpdateRegistry

Namespace: UnityEngine.UI Assembly: UnityEngine.UI.dll Syntax
public class CanvasUpdateRegistry
Constructors CanvasUpdateRegistry() Declaration
protected CanvasUpdateRegistry()
Properties instance

Get the singleton registry instance.

Declaration
public static CanvasUpdateRegistry instance { get; }
Property Value Methods DisableCanvasElementForRebuild(ICanvasElement)

Disable the given element from both the graphic and the layout rebuild lists.

Declaration
public static void DisableCanvasElementForRebuild(ICanvasElement element)
Parameters IsRebuildingGraphics()

Are graphics currently being rebuild.

Declaration
public static bool IsRebuildingGraphics()
Returns Type Description bool

True if the rebuild loop is CanvasUpdate.PreRender or CanvasUpdate.Render

IsRebuildingLayout()

Are graphics layouts currently being calculated..

Declaration
public static bool IsRebuildingLayout()
Returns Type Description bool

True if the rebuild loop is CanvasUpdate.Prelayout, CanvasUpdate.Layout or CanvasUpdate.Postlayout

RegisterCanvasElementForGraphicRebuild(ICanvasElement)

Try and add the given element to the rebuild list. Will not return if successfully added.

Declaration
public static void RegisterCanvasElementForGraphicRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element

The element that is needing rebuilt.

RegisterCanvasElementForLayoutRebuild(ICanvasElement)

Try and add the given element to the layout rebuild list. Will not return if successfully added.

Declaration
public static void RegisterCanvasElementForLayoutRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element

The element that is needing rebuilt.

TryRegisterCanvasElementForGraphicRebuild(ICanvasElement)

Try and add the given element to the rebuild list.

Declaration
public static bool TryRegisterCanvasElementForGraphicRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element

The element that is needing rebuilt.

Returns Type Description bool

True if the element was successfully added to the rebuilt list. False if either already inside a Graphic Update loop OR has already been added to the list.

TryRegisterCanvasElementForLayoutRebuild(ICanvasElement)

Try and add the given element to the layout rebuild list.

Declaration
public static bool TryRegisterCanvasElementForLayoutRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element

The element that is needing rebuilt.

Returns Type Description bool

True if the element was successfully added to the rebuilt list. False if either already inside a Graphic Update loop OR has already been added to the list.

UnRegisterCanvasElementForRebuild(ICanvasElement)

Remove the given element from both the graphic and the layout rebuild lists.

Declaration
public static void UnRegisterCanvasElementForRebuild(ICanvasElement element)
Parameters

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4