Search Unity

Question Hand menu does not follow hand position

Discussion in 'XR Interaction Toolkit and Input' started by lightsaber1231, Mar 22, 2023.

  1. lightsaber1231

    lightsaber1231

    Joined:
    Feb 1, 2023
    Posts:
    1
    I have been using Complete XR Origin Hands Set Up prefab included with XR Toolkit 2.3. I am trying to create a wrist mounted menu. For this, I made the menu canvas a child of the left hand. However, it does not follow hand position as I move my hand and stays completely stationary.

    upload_2023-3-22_11-31-50.png
     
    Last edited: Mar 22, 2023
  2. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    268
    Unfortunately the way the hierarchy is setup is a bit unintuitive. We’re going to improve it in future releases but for now, if you I want a menu that follows your wrist, you’ll need to put a tracked pose driver on the gameobject and then use the hand transform (which is equivalent to the hand wrist root) to drive it.

    You can open up the built in default input actions that ship with the samples to see what’s available.

    Alternatively you write your own follow script by querying the joints from the hand subsystem. You can look at the code in the hand visualizer class to see how to do this.
     
    lightsaber1231 likes this.