Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

locking cursor without centering it?

Discussion in 'Scripting' started by ADNCG, Feb 2, 2015.

  1. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    989
    Here's what I need to do: Hide the cursor and somehow lock it until further orders.

    Screen.lockCursor centers the cursor and from my understanding, mouse position is read only and cannot be reassigned.

    Screen.showCursor doesn't work for me neither since the cursor is able to move while hidden and I need it to be at the same exact position that it was when I hid it.

    Any solutions?
     
  2. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    989
    halp
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,184
  4. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    989
    I've seen this, probably should of mentionned it. I was hoping to spare myself from the cost, figured there was most likely a quick fix.