Protected_browserProtectedonGets called when the user clicks on the "Tags.." button to assign custom tags to a resource.
Adds a custom UI Element to the context menu as a sub-item.
The UI Element to add to the menu as a sub-item.
Adds a new item to the menu.
Path that determines where to add the element. See class information on how to specify paths. All sub-elements of a path will be added automatically.
Callback to invoke when the path element is selected.
OptionalfnOnIsActive: (() => boolean)Callback to invoke when determining if the menuItem is active.
OptionalshortcutAction: ShortcutActionBaseShortcut action to display next to the item name.
ProtectedaddAdds an Item with the given path to this Context menu.
Path that determines where to add the element. See class information on how to specify paths. All sub-elements of a path will be added automatically.
Callback to trigger when the path element is selected.
Optionalcondition: (() => boolean)Optional. Extra condition to display the item.
OptionalmethodClass: TypeOptional. The class type to get the callback method from. UILibraryBrowser if null.
OptionalmethodName: stringOptional. The callback method name for fetching shortcut actions. The callback name if null.
Optionaltarget: anyOptional. The callback object for fetching shortcut actions. Browser if null.
Adds a new toggle to the menu.
Path that determines where to add the element. See class information on how to specify paths. All sub-elements of a path will be added automatically.
The initial state of the context menu toggle. If true, the toggle will start in toggled state.
Callback to trigger when the path element is selected.
OptionalshortcutAction: ShortcutActionBaseShortcut action to display next to the item name.
Opens a context menu at the specified position relative to the provided ui element base.
The position where the context menu should be displayed.
The UI element serving as a position reference.
OptionaluseNativeMenu: booleanWhether the context menu should be displayed using native context menu when available, use the engine context menu otherwise.
Opens a context menu at the specified UIElementBase.
The UI element serving as a position reference.
Normally menu items use values from their paths as their names. However path labels don't provide a way of localizing the menu item. This method allows you to set specific names (different from path labels) to each menu item. All the values are localized so they will also be updated according to the string table.
Label of the element.
Name to display when the menu is shown.
StaticwithCreates a new instance of the UIContextMenu class that contains a list of menu items
based on the specified enumType.
The enumeration type to create the context menu from.
The callback to invoke when a menu item is selected.
OptionalinitialValue: EnumValue<T, number>Optional, the initial value that is selected when the menu is opened.
OptionalisIncludingZero: booleanOptional, if set to false, will exclude any enum value that is zero. Default is true.
A new instance of the UIContextMenu class.
Base class for custom Context Menu used in the Library.