RaptorSuiteExternalTools
Registry of external toolbar tools.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
public static class RaptorSuiteExternalToolsProperties
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.
| Parameter | Type | Description |
|---|---|---|
tool | RaptorSuiteExternalTool | The 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.
| Parameter | Type | Description |
|---|---|---|
tool | RaptorSuiteExternalTool | The tool. |
Related types
- RaptorSuiteExclusivePick: Lets an external tool take over the Suite's object picking.
- RaptorSuiteExternalTool: A toolbar tool defined outside the Suite, such as RAPTOR Render's Light tool.