Skip to main content
100%

Gist c83bdc4de5e6486850b79ddfc73b899f

✓ Published0🌍 Public
Aandybak
Last edited Nov 6, 2020
Created on Nov 6, 2020

This example shows a networked virtual-reality interaction system where objects are grabbable by remote users, with ownership transferred to the grabbing hand. It builds on Unity’s OVRGrabbable and Photon PUN2 APIs, using PhotonView to manage ownership and RPCs like SetKinematicTrue and SetKinematicFalse to synchronize physics states across all clients. The script also triggers custom UnityEvents on grab and release, and optionally hides the hand’s SkinnedMeshRenderer during a grab. The behavior is driven by the hand’s PhotonView.IsMine check, ensuring only the local player’s actions affect the object.

AI-generated description

Similar vizzes