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

Question Unity XR inventory using canvas and Socket Interactors

Discussion in 'XR Interaction Toolkit and Input' started by marijnbeenen12, Jul 23, 2023.

  1. marijnbeenen12

    marijnbeenen12

    Joined:
    Jul 23, 2023
    Posts:
    2
    I'm trying to make an inventory using the XR socket interactors on a canvas that shows and hides when you press the left primary button, the issue im running into is that when i put something in the inventory and then close it the object just falls on the floor, does anyone know how i can make the object stay in the socket and hide with the canvas?
     
  2. marijnbeenen12

    marijnbeenen12

    Joined:
    Jul 23, 2023
    Posts:
    2

    I found a solution instead of making the canvas disappear you can just teleport it away outside of the map and then into an anchor point at the players hand.