How to add animation event to imported animation clip?

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!!!

Just use serializedObject.GetIterator to go through all the properties and log their names.

Thanks!!!
You taught me a new knowledge!

The property hadn’t changed name.
I made a silly spell mistake.It’s settled now.

Thanks again.