Class HoveredControlAction
Represents an action that is tied to a Control.
Inherited Members
Namespace: UnityEditor.U2D.Path.GUIFramework
Assembly: Unity.2D.Path.Editor.dll
Syntax
public abstract class HoveredControlAction : GUIAction
Constructors
HoveredControlAction(Control)
Initializes and returns an instance of HoverControlAction.
Declaration
public HoveredControlAction(Control control)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control to execcute an action for on hover. |
Properties
hoveredControl
The hovered control.
Declaration
public Control hoveredControl { get; }
Property Value
Type | Description |
---|---|
Control |
Methods
CanTrigger(IGUIState)
Determines whether the HoveredControlAction can trigger.
Declaration
protected override bool CanTrigger(IGUIState guiState)
Parameters
Type | Name | Description |
---|---|---|
IGUIState | guiState | The current state of the custom editor. |
Returns
Type | Description |
---|---|
bool | Returns |
Overrides
OnTrigger(IGUIState)
Calls the methods in its invocation list when triggered.
Declaration
protected override void OnTrigger(IGUIState guiState)
Parameters
Type | Name | Description |
---|---|---|
IGUIState | guiState | The current state of the custom editor. |