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 Can't Grab items back from XR Socket interactor

Discussion in 'XR Interaction Toolkit and Input' started by viviplaysx, Jun 17, 2021.

  1. viviplaysx

    viviplaysx

    Joined:
    Jun 3, 2021
    Posts:
    1
    I am trying to make a holster very quick, and thought to make an XR socket interactor, but when I put my item in, I can't grab it back? Can someone explain?
    This is my gun in the socket and me not able to grab it, and my guns Grab interactable(I'm using a custom one to do two hand grab)
    OculusScreenshot1623946642.jpeg image_2021-06-17_122100.png
    Here is my Socket
    upload_2021-6-17_12-23-2.png
    upload_2021-6-17_12-23-20.png
    For further insight, every child of my M4A1 is either the grab layer, or for the 2nd grip second hand grab.

    Please help!
    -Hyperion
     
  2. ViggeBoi

    ViggeBoi

    Joined:
    Jun 20, 2019
    Posts:
    6
    I know it's very late but did you figure it out?
     
  3. chris-massie

    chris-massie

    Unity Technologies

    Joined:
    Jun 23, 2020
    Posts:
    220
    There was a bug that I think is the root cause of the issue described by the original poster that was fixed in 2.0.0, which was released after this post was made.

    Changed sockets so selections are only maintained when exclusive.
    XRSocketInteractor.CanSelect
    changed so that sockets only maintain their selection when it is the sole interactor selecting the interactable. Previously, this was causing interactables that support multiple selection to not get released from the socket when grabbed by another interactor, which is not typically desired.​
     
  4. LordEvil232

    LordEvil232

    Joined:
    Dec 12, 2021
    Posts:
    2
    still have this bug on one hand and two hand interactable items but its work on xr grab interactable

    xr tool kit 2.3.2
    unity version 2021.2.7