Quantcast
Channel: Latest Questions by lordlycastle
Viewing all articles
Browse latest Browse all 5

How to move Animation Clips into Animator Controller?

$
0
0
How can I move my own animation clips into an animation controller so it is a child in the project hierarchy. See pic below. I want them to be children of the controller so it is easier to maintain the project structure and know which clip belongs to which controller e.g. here all the new clips belong to `More Button Controller`. ![folder-hierarchy](https://i.imgur.com/D0sihsz.png) I've tried what is [suggested here](http://answers.unity.com/answers/942554/view.html). It doesn't work with existing clips. It throws an error saying 'Clip already exists'. I also tried removing and adding it and it does show up correctly in hierarchy but it also keeps the old copy. So now there are two items in the project window. AssetDatabase.RemoveObjectFromAsset(animationClip); AssetDatabase.AddObjectToAsset(animationClip, animatorController); I've also tried `AssetDatabase.MoveAsset` where new location is `AnimationController/ClipName`. That doesn't work either; it says 'Cannot move.' Is there no way to move existing clips to animator controller?

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images