Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Input.mousePosition gives wrong value at start

Discussion in 'Linux' started by deep_unity, Sep 18, 2017.

  1. deep_unity

    deep_unity

    Joined:
    Jan 28, 2015
    Posts:
    2
    I am using Unity - 2017.2.0b11 on Ubuntu 16.04. When I enter into play mode and have not moved my mouse yet, Input.mousePosition gives me weird value (possibly top corner).
    But after I move my mouse everything works fine and it always returns correct value.

    Don't know if this is a bug. If yes, is their any temporary fix for this, or there might be some other problem.
     
    Last edited: Sep 18, 2017