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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question XR Simple Interactable Does not work on some objects!

Discussion in 'XR Interaction Toolkit and Input' started by TaimaAlrimy, Aug 30, 2021.

  1. TaimaAlrimy

    TaimaAlrimy

    Joined:
    Mar 18, 2021
    Posts:
    3
    Greetings,
    I have 80 bubbles in my game and each has an animal (total 160 objects)
    i used in my game XR simple interactable for all the 160 objects. it worked at first and the raycast changes its color when pointing at the objects ( I tested all 160).
    all of a sudden I noticed that some animals became not interactable ( it was working) although I did the same thing/process for all my objects (all bubbles are fine but some animals don't work). i tried to delete and add the xr simple interactable component again, it worked on the first run.. but whenever I run the game again the same animals become not interactable!!

    and I cant seem to figure this out !!
     
  2. ohskaren

    ohskaren

    Joined:
    Mar 31, 2022
    Posts:
    4
    I ran into a similar same issue, where some XRSimpleInteractables worked and others didn't. It ended up being caused by not having a RigidBody attached to the XRSimpleInteractable GameObject. I had other XRSimpleInteractables in the scene which worked without a RigidBody, so I thought it wasn't needed. It turned out those other objects had a RigidBody in one of the parents, so they still worked (despite not having that component on the actual interactable child).
     
    Last edited: Mar 31, 2022