Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Prefabs of XR Origin are losing tracking references

Discussion in 'VR' started by KingKRoecks, Jul 14, 2023.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    145
    Editor 2022.3.4f1

    VR Starter project.

    If you make a prefab of an XR Origin and then save it, the references are being destroyed.
    upload_2023-7-13_20-33-35.png

    This is specifically a problem for the Camera, I've found, but I had to fix my hands as well.

    Here's the result of attempting to add a new one...
    upload_2023-7-13_20-34-27.png upload_2023-7-13_20-35-23.png

    I press "Ctrl + S" to save.

    First it wipes my selection:
    upload_2023-7-13_20-35-54.png

    And then I see the references are gone again..

    upload_2023-7-13_20-36-33.png
     
    DavidZobrist likes this.
  2. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    145
    Note: the save will only happen if something has changed. So move the position a little bit or something to toggle the dirty state.
     
    DavidZobrist likes this.
  3. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    145
    The issue does not effect TrackedPoseDrivers that are using the referenced asset:
    upload_2023-7-13_20-41-43.png

    This is why the prefab at the root of the SampleScene is fine to save, but a new XR Origin is not.
     
  4. DavidZobrist

    DavidZobrist

    Joined:
    Sep 3, 2017
    Posts:
    201
    I also got that issues it is really anoying. Unity 2022.3.4f1
    It happens for refrences and bindings.
     
  5. TheSheyper

    TheSheyper

    Joined:
    Jul 3, 2013
    Posts:
    21
    Same here, like you said, very annoying... -_-
     
    DavidZobrist likes this.