C# Class OVRScreenFade

Fades the screen from black after a new scene is loaded.
Inheritance: MonoBehaviour
Afficher le fichier Open project: leapmotion/ImageGrid Class Usage Examples

Méthodes publiques

Свойство Type Description
fadeColor Color
fadeTime float

Méthodes publiques

Méthode Description
Awake ( ) : void

Initialize.

OnDestroy ( ) : void

Cleans up the fade material

OnEnable ( ) : void

Starts the fade in

OnLevelWasLoaded ( int level ) : void

Starts a fade in when a new level is loaded

OnPostRender ( ) : void

Renders the fade overlay when attached to a camera object

Private Methods

Méthode Description
FadeIn ( ) : IEnumerator

Fades alpha from 1.0 to 0.0

Method Details

Awake() public méthode

Initialize.
public Awake ( ) : void
Résultat void

OnDestroy() public méthode

Cleans up the fade material
public OnDestroy ( ) : void
Résultat void

OnEnable() public méthode

Starts the fade in
public OnEnable ( ) : void
Résultat void

OnLevelWasLoaded() public méthode

Starts a fade in when a new level is loaded
public OnLevelWasLoaded ( int level ) : void
level int
Résultat void

OnPostRender() public méthode

Renders the fade overlay when attached to a camera object
public OnPostRender ( ) : void
Résultat void

Property Details

fadeColor public_oe property

The initial screen color.
public Color fadeColor
Résultat Color

fadeTime public_oe property

How long it takes to fade.
public float fadeTime
Résultat float