- Home /
edit animation <1> while having preview of animation <2>
Hi. Is there a way to edit first object's animation, have second object's animation preview? thanks.
Answer by ptm_oo · Nov 11, 2014 at 03:43 PM
Thanks for answer. All I'm asking is in edit mode, not on runtime.
I've found the solution to preview object animation in editmode, it's:
if (!EditorApplication.isPlaying)
gameObject.SampleAnimation(animationClip, time);
Then I can edit one animation and have the second object's preview in background. However I'm still trying to sync those two animations, and i can't find how to get current frame in animation mode. A year ago someone asked the same question: http://answers.unity3d.com/questions/769764/in-an-editor-script-is-there-a-way-to-access-the-a.html
Answer by Gardosen · Nov 11, 2014 at 03:32 PM
Hy, i think you will have be more specific with your question.
what do you mean with "edit first objects animation"? there is no way to edit a animation on runtime, you can play them in certain ways, but not edit them.
please provide us some more informations to be able to help you.
Greetings Gardosen
Your answer
![](https://koobas.hobune.stream/wayback/20220613171204im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What's wrong with animations creation? 1 Answer
Edit anim or FBX file that's linked to Mechanim? Can't? 3 Answers
Why can't I change and delete model components? 0 Answers
How do I Edit an Animation in the Animation Bar? 2 Answers
How to get reference on current sample from animation window in editor 0 Answers