I am currently writing a project and checking the condition : the accident occurred when the object was dropped by hand controllers and touch the floor. After the accident, I want to make the hand controllers can’t grab object so I removed OVRGrabber script from LeftHandAnchor and RightHandAnchor but couldn’t add back the script from source code.
Here is my script,
GameObject lefthand = GameObject.Find(“LeftHandAnchor”);
GameObject righthand = GameObject.Find(“RightHandAnchor”);
Destroy(lefthand.GetComponent());
Destroy(righthand.GetComponent());
and then I added back the Script but isn’t working
lefthand.AddComponent();
righthand.AddComponent();