在Unity中修改Fbx中的动画文件
背景
- Unity导入fbx格式分为Avatar model、 Animation fbx
- 为了进行骨架加点优化,将所有的model都选用了GameObject optimied ,所有的childer Transform 在hierarchy中不可见
- 在animator controller中看到的所有animationclip中的节点都是丢失的,并且animationclip是readOnly的,不能修改
- 不能在Ediotr中拖动animationclip来实现动画预览
需求
- 能够在Editor中通过拖动animationClip来进行动画预览
- 能够简单的编辑AnimationClip中的动画节点,例如:拖动,删除,增加
- 对animtor controller逻辑无影响
流程
- 打开AnimationClip Helper Window
- 选中当前需要操作的Avatar
- 选中当前Avator的动画文件对应的fbx目录–【修改为直接选取一个Animator Controller】
controller = FindController(AssetDatabase.GetAssetPath(animatorFolder));
if (null != controller)
{
AnimatorCo