docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PointerInputModule.MouseButtonEventData

    Information about a mouse button event.

    Inheritance
    object
    PointerInputModule.MouseButtonEventData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.EventSystems
    Assembly: UnityEngine.UI.dll
    Syntax
    public class PointerInputModule.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
    bool

    ReleasedThisFrame()

    Was the button released this frame?

    Declaration
    public bool ReleasedThisFrame()
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2024 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)