docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property pos

    pos

    Mouse position. GameView bottom-left == (0,0) top-right == (surface.width, surface.height) where surface == game display surface/rendertarget For screen pixel coordinates, game-view should be set to "Free Aspect". Works only in PlayMode.

    Declaration
    public Vector2 pos { readonly get; set; }
    Property Value
    Type Description
    Vector2
    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)