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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug XR Sockets just disappear on build?

Discussion in 'XR Interaction Toolkit and Input' started by unity_23chasejohnson, Feb 16, 2023.

  1. unity_23chasejohnson

    unity_23chasejohnson

    Joined:
    Nov 16, 2022
    Posts:
    4
    So I have a problem that has something to do with the XR Interactor portion of XR Sockets. I'm making a food prep game in VR and as you can see in the first clip, when I play it in the unity editor everything works perfectly. When I build the game to my Quest 2, however, suddenly some of the sockets no longer work. What's confusing me is the one in the oven works just fine but the others don't. The sockets are the exact same.

     
    Last edited: Feb 22, 2023
  2. gPerry

    gPerry

    Joined:
    Nov 27, 2013
    Posts:
    21
    Very difficult to say without seeing more of the project and how it is set up. However, in the second part of the video, when trying to attach the finished pizza to the socket, it appears to be stuck on top of a collider. Could it be something to do with how you have set up the colliders and physics layers?
     
  3. unity_23chasejohnson

    unity_23chasejohnson

    Joined:
    Nov 16, 2022
    Posts:
    4
    As far as I know I don't have any physics layers. All of the colliders and XRInteractors are the exact same. These are some screenshots of the project. Let me know if there's anything else I can do to help you understand what's happening a little better. The second picture is one of the oven socket which is the only one that does actually work.


    2023-02-17 (1).png 2023-02-17 (2).png 2023-02-17.png