C# 클래스 OVRScreenFade

Fades the screen from black after a new scene is loaded.
상속: MonoBehaviour
파일 보기 프로젝트 열기: leapmotion/ImageGrid 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
fadeColor Color
fadeTime float

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
FadeIn ( ) : IEnumerator

Fades alpha from 1.0 to 0.0

메소드 상세

Awake() 공개 메소드

Initialize.
public Awake ( ) : void
리턴 void

OnDestroy() 공개 메소드

Cleans up the fade material
public OnDestroy ( ) : void
리턴 void

OnEnable() 공개 메소드

Starts the fade in
public OnEnable ( ) : void
리턴 void

OnLevelWasLoaded() 공개 메소드

Starts a fade in when a new level is loaded
public OnLevelWasLoaded ( int level ) : void
level int
리턴 void

OnPostRender() 공개 메소드

Renders the fade overlay when attached to a camera object
public OnPostRender ( ) : void
리턴 void

프로퍼티 상세

fadeColor 공개적으로 프로퍼티

The initial screen color.
public Color fadeColor
리턴 Color

fadeTime 공개적으로 프로퍼티

How long it takes to fade.
public float fadeTime
리턴 float