コード例 #1
0
ファイル: VRTK_ScreenFade.cs プロジェクト: Namonamo0/3DEscape
 protected virtual void Awake()
 {
     fadeMaterial = new Material(Shader.Find("Unlit/TransparentColor"));
     instance     = this;
 }
コード例 #2
0
ファイル: SDK_UnityHeadset.cs プロジェクト: emmacp/test2
 /// <summary>
 /// The HeadsetFade method is used to apply a fade to the headset camera to progressively change the colour.
 /// </summary>
 /// <param name="color">The colour to fade to.</param>
 /// <param name="duration">The amount of time the fade should take to reach the given colour.</param>
 /// <param name="fadeOverlay">Determines whether to use an overlay on the fade.</param>
 public override void HeadsetFade(Color color, float duration, bool fadeOverlay = false)
 {
     VRTK_ScreenFade.Start(color, duration);
 }
コード例 #3
0
 private void Awake()
 {
     fadeMaterial = new Material(Shader.Find("Unlit/TransparentColor"));
     instance     = this;
 }