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

[SteamVR Interactable/Throwable] How do I check what gameObject I am holding?

Discussion in 'VR' started by Kyloman, Nov 3, 2019.

  1. Kyloman

    Kyloman

    Joined:
    Jul 15, 2018
    Posts:
    12
    I want to be able to detect when a gameObject is picked up by an internal script inside of it. How do I do this? I can't find any references to what it the hand is grabbing onto in either script.
     
  2. infernala1d

    infernala1d

    Joined:
    Feb 22, 2018
    Posts:
    4
    You can open up Interactions example scene and simple interactable is what you need. Just check out script attached to it.