但是我用:
AnimatorController animatorController = AssetDatabase.LoadAssetAtPath(ToPath + fileName + " " + i + "_" + j+ ".controller", typeof(UnityEditor.Animations.AnimatorController)) as UnityEditor.Animations.AnimatorController;
//获得layer信息
AnimatorControllerLayer layer = animatorController.layers[0];
显示:
Object reference not set to an instance of an object
也就是说animatorController.layers中没有baselayer,我该怎么获得。