Class LightAnchorEditorTool
LightAnchorEditorTool
Inherited Members
UnityEditor.EditorTools.EditorTool.gridSnapEnabled
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEditor
Syntax
[EditorTool("Light Anchor", typeof(LightAnchor), null)]
public class LightAnchorEditorTool : EditorTool, IEditor
Properties
toolbarIcon
Icon for LightAnchor Tool
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
| Type | Description | 
|---|---|
| GUIContent | 
Overrides
Methods
IsAvailable()
Checks whether the custom editor tool is available based on the state of the editor.
Declaration
public override bool IsAvailable()
Returns
| Type | Description | 
|---|---|
| Boolean | Always return true  | 
Overrides
OnToolGUI(EditorWindow)
Use this method to implement a custom editor tool.
Declaration
public override void OnToolGUI(EditorWindow window)
Parameters
| Type | Name | Description | 
|---|---|---|
| EditorWindow | window | The window that is displaying the custom editor tool.  |