UnityEditor.BlendTreeInspector.AddButton C# (CSharp) Method

AddButton() public method

public AddButton ( Rect rect, ReorderableList list ) : void
rect UnityEngine.Rect
list UnityEditorInternal.ReorderableList
return void
        public void AddButton(Rect rect, ReorderableList list)
        {
            GenericMenu menu = new GenericMenu();
            menu.AddItem(new GUIContent("Add Motion Field"), false, new GenericMenu.MenuFunction(this.AddChildAnimation));
            menu.AddItem(EditorGUIUtility.TempContent("New Blend Tree"), false, new GenericMenu.MenuFunction(this.AddBlendTreeCallback));
            menu.Popup(rect, 0);
        }