Search Unity

  1. 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

hand position to Vector 2 for User Interface cursor

Discussion in 'Scripting' started by Artificial_Illusions, Jul 10, 2020.

  1. Artificial_Illusions

    Artificial_Illusions

    Joined:
    Jul 24, 2018
    Posts:
    20
    Hello,
    I am trying to get a UI cursor to follow my hand's position in Unity. What is the best way to do it?

    At the moment, the debugger logs that the hand has a position like (0.4, -0.1, 04)
    Whereas my cursor has a position of (2414.2, -2618.8)

    I need to get this solved soon.

    Thank You.

    Edit: solved.
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    242
unityunity