Get RAPTOR

RaptorSuiteExclusivePick

Lets an external tool take over the Suite's object picking.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

While Active returns true, clicks in the view go to Pick and Blocks are not picked. Box and lasso selection call RegionSelect when it is set. SuppressBlockHover hides the Block hover cue. All callbacks are optional. A callback that throws is logged once per tool and treated as inactive or as picking nothing.

public sealed class RaptorSuiteExclusivePick

Fields

Active

public Func<bool> Active;

Returns whether the exclusive pick is in effect. Called on every pick and hover pass, so keep it cheap. Null means never.

Pick

public Func<Vector2, GameObject> Pick;

Returns the object under a GUI point in the view being rendered (the 3D view or a pane), or null when nothing is picked.

RegionSelect

public Action<Rect, Vector2[], List<GameObject>> RegionSelect;

Handles box and lasso selection. Receives the GUI rect, the lasso points (or null), and the list to fill. Null uses the Suite's box select.

SuppressBlockHover

public bool SuppressBlockHover;

Whether to hide the Block hover cue while the exclusive pick is active.