STYLY-XR-Rig is intended to help creators and STYLY developers to make experiences on multi platforms including Vision Pro.
This XR Rig is currently used only in STYLY for Vision Pro (not in other STYLY App for other HMDs)
Right click on the hierarchy window to open the menu. Select STYLY-XR-Rig
in the XR
section.
This section is written for maintenance purpose of this repository.
Required packages and package samples are automatically installed into /Assets/Samples directory after you install this package or open the development project.
The required samples are listed in required_samples.json
XR Hands/x.x.x/HandVisualizer
XR Interaction Toolkit/x.x.x/Hands Interaction Demo
XR Interaction Toolkit/x.x.x/Starter Assets
XR Interaction Toolkit/x.x.x/visionOS
Create XR Origin Hands (XR Rig) Variant
from Assets/Samples/XR Interaction Toolkit/x.x.x/Hands Interaction Demo/Prefabs/XR Origin Hands (XR Rig)
in Packages/com.styly.styly-xr-rig/Runtime/Prefabs/XR Origin Hands (XR Rig) Variant.prefab
Create prefab instance of XR Origin Hands (XR Rig) Variant
under STYLY-XR-Rig
Add ARAnchorManager.cs
to XR Origin Hands (XR Rig) Variant
and set enabled. This manager script cannot be added at runtime.
Create empty prefab _Added
Add two prefabs instances as children of _Added
from Assets/Samples/XR Interaction Toolkit/3.0.3/visionOS/Prefabs/Interactors
Primary Interaction Group
Secondary Interaction Group Variant
Create empty prefab XRRigManager
as a child of _Added
and attach scripts
Scripts from XR Interaction Toolkit
Packages/com.unity.xr.interaction.toolkit/Runtime/Interaction/XRInteractionManager.cs
Scripts from /Runtime/Scripts
AddVisionOSHoverEffect.cs
ARMeshManagerAttacher.cs
ARPlaneManagerAttacher.cs
ARSessionCreator.cs
ARTrackedImageManagerAttacher.cs
DisableAnotherMainCameraAndAudioListener.cs
DisableLocomotion.cs
EnableOpenXrPassthrough.cs
SetCameraYOffsetZeroOnBuildApp.cs
HideHandMeshOnVisionOs.cs
Left Hand Visual
XR Origin Hands (XR Rig)
└Camera Offset
└Left Hand
└Left Hand Interaction Visual
└LeftHand
Left Pinch Visual
XR Origin Hands (XR Rig)
└Camera Offset
└Left Hand
└Pinch Point Stabilized
└Pinch Visual
Create empty prefab VolumeCamera
as a child of _Added
and attach scripts
VolumeCamera.cs
Set dimensions to (1,1,1)