Hi All, Just wondered, have been looking but need to know if animation event has been triggered in, anyone had this problem???
The animation events gets called on any script attached to the same GameObject as the animator. So you can have a script there that checks when the event gets triggered.
Or am I not understanding what you need? I think your question is missing a word after “in”?
Hi there, thank you for your reply, yeah I can get the event triggered but the script has to be in the main object component, so its get triggered all the time, I just want it triggered when the animation triggers it… what I mean is the main character is Idle, and I have the script there, but I don’t want it triggered till the animation for stopping triggers it…
Hope that makes sense… lol
Your events will only get triggered if an animation sends that event (unless you named it Start, Update, or any of the methods that are automatically called every frame on MonoBehaviours, or unless you call the method yourself).
So if you are receiving the event while in Idle, then it’s probably because Idle is sending the event.