Skip to content

uzimaru0000/Unity-Fade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published