Skip to main content
100%

Gist 55dffaaebad7fbed3efca0439487341b

✓ Published0🌍 Public
Aandybak
Last edited Aug 8, 2019
Created on Aug 8, 2019

This example shows a Unity script that tracks when a virtual object is grabbed and released by a user in an Oculus VR environment. It demonstrates how to trigger custom UnityEvents at the start, end, and during a grab, using the OVRGrabbable component from the Oculus Integration SDK. The script polls the grabbable’s `isGrabbed` state each frame in `Update()` and uses boolean flags to fire the `StartGrab`, `EndGrab`, and `WhileGrabbed` events only once per transition. No data source is involved; the visualization is the real-time interaction state of the object.

AI-generated description

Similar vizzes