I’m using Animator for NGUI object. (c#)
When animation complete, I want call the method. How to do it?
http://docs.unity3d.com/Documentation/Components/animeditor-AnimationEvents.html it does not work. writes “Function not supported”
1 Answer
1Where are you calling the animation? If you are using coroutines, you could consider to write something like this:
yourObjectName.animation.Play ("yourAnimation");
yield return new WaitForSeconds(animation["yourAnimation"].length);
yourFunctionCall();
Using animator for Unity. animator = GetComponent(); animator.SetBool("visible", false); and animation plaing
– iRomano