API

Interface IInspectorContextMenuItem

Context menu item

interface IInspectorContextMenuItem {
    action: (entity?: unknown) => void;
    label: string;
}
Index
action: (entity?: unknown) => void

Callback function that will be called when the menu item is selected

Type Declaration

    • (entity?: unknown): void
    • Parameters

      • Optionalentity: unknown

        the entity that is currently selected in the scene explorer

      Returns void

label: string

Display label - menu item