API reference
API reference
Select your platform
No SDKs available
No versions available

Overview

Static Public Member Functions

CreateHandGrabInteractable
( Transform parent,
string name )
Creates a new HandGrabInteractable under the given object.
CreateHandGrabPose
( Transform parent,
Transform relativeTo )
static void
MirrorHandGrabPose
( HandGrabPose originalPoint,
HandGrabPose mirrorPoint,
Transform relativeTo )
Generates a new HandGrabPoseData that mirrors the provided one.
SaveData
( HandGrabInteractable interactable )
Serializes the data of the HandGrabInteractable so it can be stored.
static void
Populates the HandGrabInteractable with the serialized data version.

Details

Static Member Functions

static HandGrabInteractable Oculus.Interaction.HandGrab.HandGrabUtils.CreateHandGrabInteractable
( Transform parent,
string name )
Creates a new HandGrabInteractable under the given object.
Parameters
parent
The relative object for the interactable
name
Name for the GameObject holding this interactable
Returns
An non-populated HandGrabInteractable
static HandGrabPose Oculus.Interaction.HandGrab.HandGrabUtils.CreateHandGrabPose
( Transform parent,
Transform relativeTo )
No description available.
static void Oculus.Interaction.HandGrab.HandGrabUtils.MirrorHandGrabPose
( HandGrabPose originalPoint,
HandGrabPose mirrorPoint,
Transform relativeTo )
Generates a new HandGrabPoseData that mirrors the provided one.
Left hand becomes right hand and vice-versa. The mirror axis is defined by the surface of the snap point, if any, if none a best-guess is provided but note that it can then moved manually in the editor.
Parameters
originalPoint
The point to mirror
mirrorPoint
The target HandGrabPose to set as mirrored of the originalPoint
static HandGrabInteractableData Oculus.Interaction.HandGrab.HandGrabUtils.SaveData
( HandGrabInteractable interactable )
Serializes the data of the HandGrabInteractable so it can be stored.
Returns
The struct data to recreate the interactable
static void Oculus.Interaction.HandGrab.HandGrabUtils.LoadData
( HandGrabInteractable interactable,
Populates the HandGrabInteractable with the serialized data version.
Parameters
data
The serialized data for the HandGrabInteractable.
static HandGrabPose Oculus.Interaction.HandGrab.HandGrabUtils.LoadHandGrabPose
( HandGrabInteractable interactable,
HandGrabPoseData poseData )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon