C# Класс UnityEngine.UI.GraphicRegistry

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

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GraphicRegistry ( ) : System

Описание методов

GetGraphicsForCanvas() публичный статический Метод

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

public static GetGraphicsForCanvas ( Canvas canvas ) : IList
canvas Canvas Input canvas.
Результат IList

GraphicRegistry() защищенный Метод

protected GraphicRegistry ( ) : System
Результат System

RegisterGraphicForCanvas() публичный статический Метод

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.
Результат void

UnregisterGraphicForCanvas() публичный статический Метод

Deregister the given Graphic from a Canvas.

public static UnregisterGraphicForCanvas ( Canvas c, Graphic graphic ) : void
c Canvas Canvas.
graphic Graphic Graphic to deregister.
Результат void