private void DrawAnimationListElement(Rect rect, int index, bool isActive, bool isFocused) { AnimationClip animation = animations[index]; EditorHelper.BeginChangeLabelWidth(24.0f); animation.name = EditorGUI.TextField(rect, animationIconGuiContent, animation.name); EditorHelper.EndChangeLabelWidth(); if (EditorHelper.CheckSubmit()) { EditorUtility.SetDirty(animation); AssetDatabase.SaveAssets(); LoadAnimationList(); } }