Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Turning object into a button using XR Simple Interactable

Discussion in 'VR' started by Evinewyork, May 30, 2023.

  1. Evinewyork

    Evinewyork

    Joined:
    Dec 31, 2018
    Posts:
    5
    This is probably simple, but can't figure out. I am trying to turn an object into a button, I've attached XR simple interactable, and on hover I have a desired prefab showing up, but I need it to show up only on click. I tried all other interactable events - select, activate - but nothing else works. What am I missing here? I even tried making my own script to create a button, but also failed. Please, help.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,251
    You could just use colliders/triggers and read out collision.