Search Unity

Instantiate Object in Hand

Discussion in 'AR/VR (XR) Discussion' started by Base8, May 15, 2020.

  1. Base8

    Base8

    Joined:
    Mar 3, 2017
    Posts:
    1
    Hello,

    I want to Instantiate a Grabbable GameObject in my OVR Hand. The Object should behave like I have grabbed it when I spawn it. I don't want to instantiate the Object as a child of my "RightHandAnchor".
    Is there any way I can Instantiate an Object and grab it in a C# skript? If there is no way, does anyone know a workaround for this?
    Looking through the OVR documentation I have not found any Method that lets me do a grab programmatically but maybe someone knows a way.

    Thanks!
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782
    Why don't you want to make the object a child of your hand?