docs.unity.cn
    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)
    Namespace: UnityEditor.U2D.Path.GUIFramework
    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
    Boolean

    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)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 1, 2022
    Terms of use