docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HoveredControlAction

    Represents an action that is tied to a Control.

    Inheritance
    object
    GUIAction
    HoveredControlAction
    ClickAction
    Inherited Members
    GUIAction.enable
    GUIAction.enableRepaint
    GUIAction.repaintOnMouseMove
    GUIAction.onPreRepaint
    GUIAction.onRepaint
    GUIAction.ID
    GUIAction.OnGUI(IGUIState)
    GUIAction.IsEnabled(IGUIState)
    GUIAction.IsRepaintEnabled(IGUIState)
    GUIAction.PreRepaint(IGUIState)
    GUIAction.GetFinishContidtion(IGUIState)
    GUIAction.GetTriggerContidtion(IGUIState)
    GUIAction.OnPerform(IGUIState)
    GUIAction.OnFinish(IGUIState)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 true if the HoveredControlAction can trigger. Otherwise, returns false.

    Overrides
    GUIAction.CanTrigger(IGUIState)

    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.

    Overrides
    GUIAction.OnTrigger(IGUIState)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)