UniRx icon indicating copy to clipboard operation
UniRx copied to clipboard

[Pull request] Animation.PlayAsObservable

Open MartinGonzalez opened this issue 4 years ago • 0 comments

I've created an extension method for the legacy Animation clips when you hit Play. Under the hood it creates an AniamtionEvent at the end of the AnimationClip.

Do you think this is useful to create a pull request?

What are your thoughts?

Example code:

  animation
            .PlayAsObservable("Anim01")
            .SelectMany(_ => animation.PlayAsObservable("Anim02"))
            .SelectMany(_ => animation.PlayAsObservable("Anim03"))
            .SelectMany(_ => animation.PlayAsObservable("Anim04"))
            .Subscribe();

demo_playasobservable mov

MartinGonzalez avatar Jan 02 '20 15:01 MartinGonzalez