- Home /
This question was
closed Mar 18, 2021 at 02:46 AM by
Kewelaids for the following reason:
Other
Question by
Kewelaids · Mar 11, 2021 at 11:38 PM ·
animationgameobjectmanageranimation events
Does the animation event only run functions from scripts that are attached to the Gameobject?
I did some research, but couldn't find anything about it. Just a curiosity, if it is possible for the animation event to call functions from other scripts/game objects without it being attracted to the animated game object. If so can I use a manager to reference it and how.
Thanks Just a self-taught programmer
Comment
Answer by AcePilot10 · Mar 12, 2021 at 03:16 AM
As far as I know you can only use functions from scripts attached to the GameObject. I would just create a simple script to attach to the GameObject which will have a function to call your manager class.