uzimaru0000 / Unity-Fade

ImageEffect of fade

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity-Fade

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を実行

About

ImageEffect of fade


Languages

Language:C# 64.9%Language:ShaderLab 35.1%