async UniTaskVoid Start

master
neuecc 2020-06-26 17:53:07 +09:00
parent 54ceca6ceb
commit 68cdda086a
1 changed files with 12 additions and 0 deletions

View File

@ -431,6 +431,18 @@ actEvent += UniTask.Action(async () => { await UniTask.Yield(); });
unityEvent += UniTask.UnityAction(async () => { await UniTask.Yield(); }); unityEvent += UniTask.UnityAction(async () => { await UniTask.Yield(); });
``` ```
`UniTaskVoid` can also use in MonoBehaviour's `Start` method.
```csharp
class Sample : MonoBehaviour
{
async UniTaskVoid Start()
{
// async init code.
}
}
```
UniTaskTracker UniTaskTracker
--- ---
useful for check(leak) UniTasks. You can open tracker window in `Window -> UniTask Tracker`. useful for check(leak) UniTasks. You can open tracker window in `Window -> UniTask Tracker`.