AddItemsToContextMenu Method

AddItemsToContextMenu(GenericMenu, VisualElement, Int32, SerializedObject)

Override this method to add custom menu items to the header's context menu.

Declaration
protected virtual void AddItemsToContextMenu(GenericMenu menu, VisualElement header, int itemIndex, SerializedObject serializedObject)
Parameters
GenericMenu menu

The context menu

VisualElement header

The header

Int32 itemIndex

The index in the list

SerializedObject serializedObject

The inspected object