InspectorAction beta
Interface of @v12-engine/editor
ts
export interface InspectorActionA button of the Inspector's of a game's own (editor.inspector.addActions): what it says, what it does with what is selected, its tooltip, and when it is shown
Members
label
ts
label: string;The button's text
run
ts
run: (selected: EditorSelected) => void;What the button does with what is selected
tip
ts
tip?: string;The button's tooltip
when
ts
when?: (selected: EditorSelected) => boolean;Whether the button is shown for what is selected; always when left out