It would be really nice to have the ability to set a onetime callback on an animation.
Example:
animator.Play("junk", normalizedTimeToFire, ()=>{
// Do stuff once at normalized time
});
It would be really nice to have the ability to set a onetime callback on an animation.
Example:
animator.Play("junk", normalizedTimeToFire, ()=>{
// Do stuff once at normalized time
});
I suspect the chance of something like this being implemented is basically 0% because Unity already has an animation event system and Animator Controllers seem to have been designed to avoid pesky little things like “convenience” and “straight forward logic”.
I know I’ve mentioned Animancer to you before and this is another thing it has. The Animancer Events system works very similarly to what you are proposing.