如下图示属性,需要批量通过代码修改
Unity代码修改模型动画属性

            ModelImporter modelImporter = AssetImporter.GetAtPath(assetPath) as ModelImporter;       
            ModelImporterClipAnimation tempClip = modelImporter.defaultClipAnimations[0];
            tempClip.name = GetName(name);
            tempClip.keepOriginalOrientation = true;
            tempClip.lockRootRotation = true;
            tempClip.keepOriginalPositionY = true;
            tempClip.lockRootHeightY = true;
            tempClip.lockRootPositionXZ = true;
            tempClip.keepOriginalPositionXZ = true;
            tempClip.loopTime = true;
            modelImporter.clipAnimations = new[] { tempClip };

 

属性对应可见http://icelily.xyz/?p=739

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-04-14
  • 2021-08-20
  • 2021-04-19
猜你喜欢
  • 2021-04-16
  • 2021-05-21
  • 2021-05-13
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案