Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Cursor Position

Discussion in 'Scripting' started by Marrt, Jan 28, 2013.

  1. Marrt

    Marrt

    Joined:
    Feb 7, 2012
    Posts:
    571
    Since Unity 4 there is HW-Cursor support:
    http://docs.unity3d.com/Documentation/ScriptReference/Cursor.SetCursor.html

    however, this doesn't annihilate the Unity inherent mouseInput lag when using, "Input.mousePosition"
    i know vsync can increase input latency by one frame but the lag between software and hardware cursor feels greater than that


    -is there any way to get the HW-mouseposition into Unity?
     
  2. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    You'll got to live with it: all the stuff within any application on the planet has this "lag". It appears when dragging any custom in-app windows etc. It's just the technical issue (works without a lag only when dragging the OS window).
     
  3. Marrt

    Marrt

    Joined:
    Feb 7, 2012
    Posts:
    571
    Thanks for clearing that up!
     
unityunity