Get RAPTOR

RaptorSuiteExternalTools

Registry of external toolbar tools.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0
public static class RaptorSuiteExternalTools

Properties

Active

public static RaptorSuiteExternalTool Active { get; }

Gets the active external tool, or null when a Suite tool is active.

All

public static IReadOnlyList<RaptorSuiteExternalTool> All { get; }

Gets every registered tool in toolbar order.

ExclusivePicking

public static RaptorSuiteExclusivePick ExclusivePicking { get; }

Gets the exclusive pick in effect: the first tool in toolbar order whose RaptorSuiteExclusivePick.Active returns true, or null when the Suite handles picking.

Methods

Register

public static void Register(RaptorSuiteExternalTool tool)

Adds a tool, or replaces the one with the same Id.

ParameterTypeDescription
toolRaptorSuiteExternalToolThe tool.

Call from an [InitializeOnLoad] static constructor on the main thread.

RepaintChrome

public static void RepaintChrome()

Redraws the cached panels on the next frame. Call it when an external tool changes state from code rather than input.

Unregister

public static void Unregister(RaptorSuiteExternalTool tool)

Removes a tool.

ParameterTypeDescription
toolRaptorSuiteExternalToolThe tool.