RaptorSuiteSelectionMenu.Contributor
Adds a module's section to the Suite's right-click selection menu in the Hierarchy, 3D view and Top, Front and Side panes.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | delegate | preview, since 0.1.0 |
Adds rows to menu for targets. Adding no rows means no section. Suite menus run actions on the next editor tick, so each row's action must check editingAllowed again when it runs. Call changed after an action changes something.
public delegate void Contributor(RaptorSuiteControls.Menu menu, GameObject[] targets, Func<bool> editingAllowed, Action changed);| Parameter | Type | Description |
|---|---|---|
menu | RaptorSuiteControls.Menu | The menu to add to. |
targets | GameObject[] | The selected objects. |
editingAllowed | Func<bool> | Returns false while editing is not allowed. |
changed | Action | Call it when a row changes something. |
Related types
- RaptorSuiteControls.Menu: A grouped Suite menu built on RaptorSuiteMenu.Builder, with a header per group and separators between groups.
- RaptorSuiteSelectionMenu: The selection's right-click menu.