Interface ToolsArea.ToolAction
Defines a certain action that can be done for an action in the WeaverCoreDebugTools menu
Namespace: WeaverCore.Assets
Assembly: WeaverCore.dll
Syntax
public interface ToolsArea.ToolAction
Properties
| Edit this page View SourceToolName
The name of the tool
Declaration
string ToolName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceOnGameObjectUpdated(GameObject)
Called when the selected gameObject in the RuntimeHierarchy is updated. If this function returns true, the tools button will be displayed
Declaration
bool OnGameObjectUpdated(GameObject selection)
Parameters
Type | Name | Description |
---|---|---|
GameObject | selection | The newly selected onbject in the RuntimeHierachy |
Returns
Type | Description |
---|---|
bool | Returns whether this tool is able to work on the object |
OnToolExecute()
Called when the tool is executed
Declaration
void OnToolExecute()