docs.unity.cn
    Show / Hide Table of Contents

    Class PointerInputModule.MouseButtonEventData

    Information about a mouse button event.

    Inheritance
    Object
    PointerInputModule.MouseButtonEventData
    Namespace: UnityEngine.EventSystems
    Syntax
    public class MouseButtonEventData

    Fields

    buttonData

    Pointer data associated with the mouse event.

    Declaration
    public PointerEventData buttonData
    Field Value
    Type Description
    PointerEventData

    buttonState

    The state of the button this frame.

    Declaration
    public PointerEventData.FramePressState buttonState
    Field Value
    Type Description
    PointerEventData.FramePressState

    Methods

    PressedThisFrame()

    Was the button pressed this frame?

    Declaration
    public bool PressedThisFrame()
    Returns
    Type Description
    Boolean

    ReleasedThisFrame()

    Was the button released this frame?

    Declaration
    public bool ReleasedThisFrame()
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023