The EditorTool class in the Editor
namespace provides a base for creating custom tools within the s&box editor environment. It offers a variety of methods and properties to manage tool behavior, selection, and scene interaction.
The EditorTool class in the Editor
namespace provides a base for creating custom tools within the s&box editor environment. It offers a variety of methods and properties to manage tool behavior, selection, and scene interaction.
Member Name | Summary |
---|---|
OnUpdate | Called every frame to update the tool's state. |
OnEnabled | Invoked when the tool is enabled. |
OnDisabled | Invoked when the tool is disabled. |
OnSelectionChanged | Called when the selection changes in the editor. |
Dispose | Releases resources used by the tool. |
GetSubtools | Return any tools that this tool wants to use. |
AddOverlay | Adds an overlay widget to the scene. |
Member Name | Summary |
---|---|
Manager | Gets the tool manager associated with this tool. |
Selection | Gets the current selection system. |
Scene | Gets the current scene. |
SceneOverlay | Gets the scene overlay widget. |
Camera | Gets the scene camera. |
Tools | Gets the collection of sub-tools. |
CurrentTool | Gets the currently active tool. |
Trace | Creates a scene trace against the current scene using the current mouse cursor. |
MeshTrace | Creates a trace against render meshes but not the physics world, using the current mouse cursor. |
AllowGameObjectSelection | If true, regular scene object selection will apply. |