C# Class CanvasBillboard, VRDesignLab

Inheritance: MonoBehaviour
Mostrar archivo Open project: VRUX-CO/VRDesignLab Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Awake ( ) : void

Private Methods

Method Description
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.

Method Details

Awake() protected method

protected Awake ( ) : void
return void

Billboard() public static method

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
return CanvasBillboard,

Hide() public method

Hides the billboard.
public Hide ( float delayInSeconds = 0.0f ) : void
delayInSeconds float
return void

Show() public method

Shows the billboard.
public Show ( float delayInSeconds = 0.0f ) : void
delayInSeconds float
return void