Get RAPTOR

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.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editordelegatepreview, 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);
ParameterTypeDescription
menuRaptorSuiteControls.MenuThe menu to add to.
targetsGameObject[]The selected objects.
editingAllowedFunc<bool>Returns false while editing is not allowed.
changedActionCall it when a row changes something.