/// /// MIT License - Copyright(c) 2019 Ugo Belfiore /// using UnityEngine; using UnityEditor; namespace ExtUnityComponents { [CustomEditor(typeof(Animator))] public class AnimatorEditor : DecoratorComponentsEditor { public AnimatorEditor() : base(editorTypeName: BUILT_IN_EDITOR_COMPONENTS.AnimatorInspector, showExtension: false, tinyEditorName: "Animator Tool") { } /// /// get called by the decorator to show a tiny editor /// protected override void ShowTinyEditorContent() { if (GUILayout.Button("Play")) { ExtReflection.SetPlayButton(); } } } }