- Home /
Question by
saar · Sep 16, 2011 at 10:12 PM ·
animationanimationclipanimationevent
Adding AnimationClips with Events to a game object at runtime?
Hi, Our content pipeline currently imports animation clips from .FBX. We then make a writable copy of the clip so we can add AnimationEvents. If I then add the clip to a game object in the editor, I can add events and they fire when I run my scene. However, if the clip is added to a game object's Animation component at runtime, the event functions are not called. Both objects have the same script containing the event functions.
Should this work or is there something in the way anim events are bound that prevents what I am trying to do?
thanks!
Comment