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

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:
    782