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

OVRScreenFade Class

Extends MonoBehaviour
Fades the screen from black after a new scene is loaded.
Fade can also be controlled mid-scene using SetUIFade and SetFadeLevel

Fields

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

Properties

currentAlpha : float
[Get]
Renders the current alpha value being used to fade the screen.
Signature
float OVRScreenFade.currentAlpha
instance : OVRScreenFade
[Get]
Signature
OVRScreenFade OVRScreenFade.instance

Methods

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