PlayspaceUtilities Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Utilities for retrieving the XR rig's offset transform, for use in transforming tracked object coordinates.
public static class PlayspaceUtilities
type PlayspaceUtilities = class
Public Class PlayspaceUtilities
- Inheritance
-
PlayspaceUtilities
Properties
| Name | Description |
|---|---|
| ReferenceTransform |
Obsolete.
Get the reference transform for the playspace. |
| XROrigin |
The first detected XROrigin in the current scene. To transform a trackable's pose into world space, either use Unity.XR.CoreUtils.XROrigin.CameraFloorOffsetObject or use the TransformPose(Pose) and TransformPose(HandJointPose) methods. |
Methods
| Name | Description |
|---|---|
| InverseTransformPose(HandJointPose) |
Transforms a HandJointPose from Unity world-space to OpenXR scene-origin-space. Uses the XROrigin's CameraFloorOffsetObject transform. |
| InverseTransformPose(Pose) |
Transforms a UnityEngine.Pose from Unity world-space to OpenXR scene-origin-space. Uses the XROrigin's CameraFloorOffsetObject transform. |
| TransformPose(HandJointPose) |
Transforms a HandJointPose from OpenXR scene-origin-space to Unity world-space. Uses the XROrigin's CameraFloorOffsetObject transform. |
| TransformPose(Pose) |
Transforms a UnityEngine.Pose from OpenXR scene-origin-space to Unity world-space. Uses the XROrigin's CameraFloorOffsetObject transform. |