Unity-Fade

May 13, 2017 · View on GitHub

Discription

UnityでFadeIn/Outを使うAssets

How to Use

  1. Fade.csをMainCameraにアタッチ
  2. 各スクリプトで以下のように使う
var fader = Camera.main.GetComponent<Fade>();
fader.FadeIn(0.5f, () => print("Finish FadeIn!"))
     .FadeOut(0.5f, () => print("Finish FadeOut!"));

Method

FadeClass

  • Fade FadeIn(float time, System.Action callback = null)
    time秒でフェードインした後callbackを実行
  • Fade FadeOut(float time, System.Action callback = null)
    time秒でフェードアウトした後callbackを実行