UnityEditor.AnimationClipEditor.OnHeaderControlsGUI C# (CSharp) Méthode

OnHeaderControlsGUI() private méthode

private OnHeaderControlsGUI ( ) : void
Résultat void
        internal override void OnHeaderControlsGUI()
        {
            if (((this.m_ClipInfo != null) && (this.takeNames != null)) && (this.takeNames.Length > 1))
            {
                EditorGUIUtility.labelWidth = 80f;
                this.takeIndex = EditorGUILayout.Popup("Source Take", this.takeIndex, this.takeNames, new GUILayoutOption[0]);
            }
            else
            {
                base.OnHeaderControlsGUI();
                ModelImporter atPath = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(this.target)) as ModelImporter;
                if ((atPath != null) && (this.m_ClipInfo == null))
                {
                    GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.ExpandWidth(false) };
                    if (GUILayout.Button("Edit...", EditorStyles.miniButton, options))
                    {
                        EditWithImporter(this.target as AnimationClip);
                    }
                }
            }
        }