Hello,
I am trying to add animation events to imported animation clip in my custom editor.
I found some solution like this
(#3)
Here is a part of that function
ModelImporter modelImporter = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(targetAnimClip)) as ModelImporter;
if (modelImporter == null)
return;
SerializedObject serializedObject = new SerializedObject(modelImporter);
SerializedProperty clipAnimations = serializedObject.FindProperty("m_ClipAnimations");
My problem is ,when i use “FindProperty(“m_ClipAnimations”)” its return nothing.
Has this property changed name in new version?Or something else i had not noticed?
I’m using unity 2018.3.11f
Please help me !Thanks!!!