Search Unity

  1. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  2. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice
  3. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Resolved XR Interactable's Parent becomes Root

Discussion in 'XR Interaction Toolkit and Input' started by PontiusP, Dec 1, 2020.

  1. PontiusP


    Nov 5, 2020

    I'm playing around with grabbing Interactables with an XR Direct Interactor. I've set up the default inputs for the Input System. I got an Interaction Manager as well.

    The problem is that the Interactable Object that I grab with my controller always changes its parent to the Root Scene.

    I tried putting a Cube inside a Kitchen(Empty Object) that is inside another House(Empty Object), When I grab the Cube, again, the Cube's parent becomes Root Scene.

    I even put the XR Interaction Manager inside the House thinking that maybe the Interactable objects go to the same level as the Interaction Manager, but no. The Cube's parent still becomes Root when I grab them with the controller.

    Is there a setting that I'm missing? I tried looking in the Docs, but it doesn't say that the Interactables' parent becomes the root.
  2. mfuad


    Unity Technologies

    Jun 12, 2018
    A Grab Interactable when grabbed will reparent to root, and then reparent back to the original parent when dropped (configurable with *Retain Transform Parent*). If you would like to request a feature to support not changing the parent, please do so on the public roadmap with your use case.
    enemali and PontiusP like this.
  3. GemsJames


    Nov 24, 2018
    all you have to do is implement a bool, why isnt this a thing yet?