/WaitForAnim

A custom yield-instruction for Unity to wait for animations to finish

Primary LanguageC#The UnlicenseUnlicense

WaitForAnim

openupm

A Unity-package for waiting for animations in coroutines.

Check out the wiki here.

Found any issues? Leave them here.

Want to see what's new? The changelog is here.

Features

Adds custom yield-instructions for waiting for animations to start or finish inside of coroutines. Example:

// using Dev.ComradeVanti.WaitForAnim

yield return new WaitForAnimationToStart(animator, "MyAnim");

Installation

The quickest way is to install via OpenUPM using openupm add dev.comradevanti.wait-for-anim.

Or install manually as git dependency from https://github.com/ComradeVanti/WaitForAnim.git or download as zip and import locally.

Compatability

Developed with Unity 2020.3 but good chance that it will work with earlier versions, though this has not been tested.