Struct PointerInteraction | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PointerInteraction

    Captures the interaction between the mouse/touch and the UI control. This component requires the RectTransform component, from the UILayout module.

    Namespace: Unity.Tiny.UIControls
    Syntax
    public struct PointerInteraction : IComponentData

    Fields

    clicked

    True if the UI control is clicked. A click consists of a mouse-down action and a corresponding mouse-up action while the cursor is inside the control's bounds.

    Declaration
    public bool clicked
    Field Value
    Type Description
    System.Boolean

    down

    True if the mouse button is pressed and the press started when the cursor was over the UI control.

    Declaration
    public bool down
    Field Value
    Type Description
    System.Boolean

    over

    True if the cursor is inside the bounds of the UI control.

    Declaration
    public bool over
    Field Value
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023