GenericMenuExtensions

Collection of extension methods for GenericMenu.

namespace Sirenix.Utilities.Editor
{
[ExtensionAttribute]
public static class GenericMenuExtensions
}

Requirements

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Extension Methods

Return Type Definition Description
bool RemoveMenuItems(this GenericMenu, string) Removes all menu items with a given name from the GenericMenu.
bool ReplaceOrAdd(this GenericMenu, string, bool, MenuFunction) Replaces the first found menu item with a given name with a new menu item, or if no such element is found, adds a new one.
bool ReplaceOrAdd(this GenericMenu, string, bool, MenuFunction2, Object) Replaces the first found menu item with a given name with a new menu item, or if no such element is found, adds a new one.