UniTaskに依存しますが
public static class PlayableDirectorExtensions
{
public static UniTask PlayAsync(this PlayableDirector self)
{
self.Play();
return UniTask.WaitWhile(() => self.state == PlayState.Playing);
}
}
Go to list of users who liked
More than 5 years have passed since last update.
UniTaskに依存しますが
public static class PlayableDirectorExtensions
{
public static UniTask PlayAsync(this PlayableDirector self)
{
self.Play();
return UniTask.WaitWhile(() => self.state == PlayState.Playing);
}
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked