Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/uzimaru0000/Unity-Fade
- Owner: uzimaru0000
- Created: 2017-05-13T20:12:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T20:36:17.000Z (over 7 years ago)
- Last Synced: 2024-07-14T04:39:02.802Z (4 months ago)
- Topics: assets, fade, unity3d
- Language: C#
- Size: 26.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity-Fade - ImageEffect of fade (Effect)
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を実行