C# Class UnityEngine.UI.GraphicRegistry

Registry which maps a Graphic to the canvas it belongs to.

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetGraphicsForCanvas ( Canvas canvas ) : IList

Return a list of Graphics that are registered on the Canvas.

RegisterGraphicForCanvas ( Canvas c, Graphic graphic ) : void

Store a link between the given canvas and graphic in the registry.

UnregisterGraphicForCanvas ( Canvas c, Graphic graphic ) : void

Deregister the given Graphic from a Canvas.

Protected Methods

Method Description
GraphicRegistry ( ) : System

Method Details

GetGraphicsForCanvas() public static method

Return a list of Graphics that are registered on the Canvas.

public static GetGraphicsForCanvas ( Canvas canvas ) : IList
canvas Canvas Input canvas.
return IList

GraphicRegistry() protected method

protected GraphicRegistry ( ) : System
return System

RegisterGraphicForCanvas() public static method

Store a link between the given canvas and graphic in the registry.

public static RegisterGraphicForCanvas ( Canvas c, Graphic graphic ) : void
c Canvas Canvas to register.
graphic Graphic Graphic to register.
return void

UnregisterGraphicForCanvas() public static method

Deregister the given Graphic from a Canvas.

public static UnregisterGraphicForCanvas ( Canvas c, Graphic graphic ) : void
c Canvas Canvas.
graphic Graphic Graphic to deregister.
return void