C# Класс CanvasBillboard, VRDesignLab

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

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

Метод Описание
Billboard ( GameObject billboardPrefab, Vector3 position, Transform parent, bool destroyOnHide ) : CanvasBillboard,

Creates and returns a new billboard canvas.

Hide ( float delayInSeconds = 0.0f ) : void

Hides the billboard.

Show ( float delayInSeconds = 0.0f ) : void

Shows the billboard.

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

Метод Описание
Awake ( ) : void

Приватные методы

Метод Описание
Fade ( float alphaFrom, float alphaTo, float durationInSeconds, float delayInSeconds, Action onFadeComplete ) : IEnumerator

Coroutine used to fade the billboard from one alpha value to another.

OnHideComplete ( ) : void

Callback for hide complete to destroy the billboard if required.

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

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

protected Awake ( ) : void
Результат void

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

Creates and returns a new billboard canvas.
public static Billboard ( GameObject billboardPrefab, Vector3 position, Transform parent, bool destroyOnHide ) : CanvasBillboard,
billboardPrefab GameObject
position Vector3
parent Transform
destroyOnHide bool
Результат CanvasBillboard,

Hide() публичный Метод

Hides the billboard.
public Hide ( float delayInSeconds = 0.0f ) : void
delayInSeconds float
Результат void

Show() публичный Метод

Shows the billboard.
public Show ( float delayInSeconds = 0.0f ) : void
delayInSeconds float
Результат void