Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uzimaru0000/Unity-Fade

ImageEffect of fade
https://github.com/uzimaru0000/Unity-Fade

assets fade unity3d

Last synced: 3 months ago
JSON representation

ImageEffect of fade

Awesome Lists containing this project

README

        

# Unity-Fade

## Discription
UnityでFadeIn/Outを使うAssets

## How to Use

1. `Fade.cs`をMainCameraにアタッチ
1. 各スクリプトで以下のように使う
```csharp
var fader = Camera.main.GetComponent();
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を実行