docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetMouseClickPosition

    GetMouseClickPosition(float)

    Returns the position of the mouse click.

    Declaration
    public Vector2 GetMouseClickPosition(float ScreenHeight)
    Parameters
    Type Name Description
    float ScreenHeight

    Window height.

    Returns
    Type Description
    Vector2

    The coordinates of the mouse click.

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