A place where CanvasElements can register themselves for rebuilding.
InheritanceCanvasUpdateRegistry
Namespace: UnityEngine.UI Assembly: UnityEngine.UI.dll Syntaxpublic class CanvasUpdateRegistry
Constructors CanvasUpdateRegistry() Declaration
protected CanvasUpdateRegistry()
Properties instance
Get the singleton registry instance.
Declarationpublic static CanvasUpdateRegistry instance { get; }
Property Value Methods DisableCanvasElementForRebuild(ICanvasElement)
Disable the given element from both the graphic and the layout rebuild lists.
Declarationpublic static void DisableCanvasElementForRebuild(ICanvasElement element)
Parameters IsRebuildingGraphics()
Are graphics currently being rebuild.
Declarationpublic 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..
Declarationpublic 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.
Declarationpublic 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.
Declarationpublic 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.
Declarationpublic static bool TryRegisterCanvasElementForGraphicRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element
The element that is needing rebuilt.
Returns Type Description boolTrue 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.
Declarationpublic static bool TryRegisterCanvasElementForLayoutRebuild(ICanvasElement element)
Parameters Type Name Description ICanvasElement element
The element that is needing rebuilt.
Returns Type Description boolTrue 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.
Declarationpublic 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