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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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:
    9
    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.