- Home /
Get All Keyframes/Events in an animation
I'm trying to detect when objects move a large distance in an animation clip, but from the documentation I can't see how to access the keyframes or events in an animation clip.
There's a function for getting animation curves in the editor, but I need to do it at runtime. I could re-import all my animations and do the processing in the editor but that seems error-prone.
Is there a function I've missed somewhere?
Ideally I just want a list of frame or time indices and positions for each curve
Bump.
I'm trying to gather animation events at runtime.
I can only find this editor utility script: http://docs.unity3d.com/ScriptReference/AnimationUtility.GetAnimationEvents.html
Your answer
Follow this Question
Related Questions
Create Animation in unity3d only on one axis 1 Answer
Can the animation editor create local rotational data? 3 Answers
Flattening unity animation curves 1 Answer
Adding animation clips via script 2 Answers
How To Get The Position And Rotation For ALL The Children Of An Object For An Animation At Once 0 Answers