API reference
API reference
Select your platform
No SDKs available
No versions available

OVRScreenFade Class

Fades the screen from black after a new scene is loaded.
OVRScreenFade extends MonoBehaviour.

Overview

Properties

float
Renders the current alpha value being used to fade the screen.

Data Fields

float
Color
bool
int
The render queue used by the fade mesh.

Public Member Functions

void
FadeIn ( )
Start a fade in.
void
FadeOut ( )
Start a fade out.
void
SetUIFade
( float level )
Set the UI fade level - fade due to UI in foreground.
void
SetExplicitFade
( float level )
Override current fade level.

Details

Detailed Description

Fade can also be controlled mid-scene using SetUIFade and SetFadeLevel

Properties

OVRScreenFade OVRScreenFade.instance
No description available.
float OVRScreenFade.currentAlpha
Renders the current alpha value being used to fade the screen.

Fields

float OVRScreenFade.fadeTime
No description available.
Color OVRScreenFade.fadeColor
No description available.
bool OVRScreenFade.fadeOnStart
No description available.
int OVRScreenFade.renderQueue
The render queue used by the fade mesh.
Reduce this if you need to render on top of it.

Member Functions

void OVRScreenFade.FadeIn ( )
Start a fade in.
void OVRScreenFade.FadeOut ( )
Start a fade out.
void OVRScreenFade.SetUIFade
( float level )
Set the UI fade level - fade due to UI in foreground.
void OVRScreenFade.SetExplicitFade
( float level )
Override current fade level.
Parameters
level
Did you find this page helpful?
Thumbs up icon
Thumbs down icon