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 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:
    4
    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:
    4,240
    You could just use colliders/triggers and read out collision.