Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Hardware cursor hotspot

Discussion in 'Scripting' started by Danz0r77, Apr 24, 2013.

  1. Danz0r77

    Danz0r77

    Joined:
    Mar 19, 2013
    Posts:
    20
    Hi

    I'm using a hardware cursor (with cross hair image) but the hotspot is always at the top left. How can I change the hotspot so that it's in the center of the crosshairs? I've tried this but it doesn't seem to do make any difference:

    Code (csharp):
    1. hotSpot = Vector2(16,16);
    2.     Cursor.SetCursor(cursorTexture,hotSpot,cursorMode);
    I've also tried setting the same values in the Player Settings -> Cursor Hotspot setting but again, no difference.

    Is this possible?
     
  2. Danz0r77

    Danz0r77

    Joined:
    Mar 19, 2013
    Posts:
    20
    Sorry, this can be deleted... I was editing the wrong file :oops:
     
unityunity