Question by
derfeind2k · Sep 21, 2018 at 05:54 AM ·
c#animationmecanim
How to create a Mecanim Animation in C# ?
I write a plugin to import animations from a game, so i need to create a human / mecanim animation from inside c#
My current code looks like :
AnimationClip clip = new AnimationClip();
clip.SetCurve("<theBonePath>", typeof(Transform), "localPosition.x", animationCurveTX);
AssetDatabase.CreateAsset(clip, "Assets/script-test.anim");
Just a simple dummy. But how can i tell the Clip its human driven ? Can someone please point me the right direction or link a example how to create a human animation from script ?
Thanks
Comment
Your answer
Follow this Question
Related Questions
Mecanim animation playing once on button press 2 Answers
Creating a dynamic animation system for a card game. 0 Answers
Mecanim Drawer Animation problem? 0 Answers
Problems with using the same Animator Controller on multiple objects. 0 Answers
How do I get my character to stop moving while he is attacking? 0 Answers