Forum Discussion
zacheri
6 years agoExplorer
How would I go about doing something when an object is grabbed/released?
As the title says, I would like to set it up so I can execute code when an object is grabbed or released. How would I go about doing that?
3 Replies
Replies have been turned off for this discussion
- NashouteHonored GuestThe OVRGrabable have functions like "GrabBegin" or "GrabEnd", just do your custom script, inherits the OvrGrabable and custom your grabs. If you are looking to your hands, there is also a GrabBegin and a GrabEnd in the OVRGrabber.
- verdemisHonored Guest
Nashoute said:
The OVRGrabable have functions like "GrabBegin" or "GrabEnd", just do your custom script, inherits the OvrGrabable and custom your grabs. If you are looking to your hands, there is also a GrabBegin and a GrabEnd in the OVRGrabber.
I'm looking after something like this, but I'm using the XR Interaction Toolkit, and as far as I know they don't have such events? - UmbrinoxExplorerIn the premium learning (free currently) there are VR tutorials and they already have the scripts pre written for things like this. I just cut and pasted them into my own project.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months agoAnonymous
- 2 years ago
- 4 years ago