version 2.2.0

This commit is contained in:
srl87
2024-01-10 14:20:05 +08:00
parent 11b730e79b
commit 45b4e46f74
211 changed files with 107849 additions and 1160 deletions

View File

@@ -34,7 +34,24 @@ namespace VIVE.OpenXR.CompositionLayer.Samples.Passthrough
private void Update()
{
if (passthroughMesh != null && passthroughMeshTransform != null)
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.B)) //Set Passthrough as Overlay
{
SetPassthroughToOverlay();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.A)) //Set Passthrough as Underlay
{
SetPassthroughToUnderlay();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.X)) //Switch to world lock
{
SetWorldLock();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.Y)) //Switch to head lock
{
SetHeadLock();
}
if (passthroughMesh != null && passthroughMeshTransform != null)
{
if (activePassthroughID == 0)
{
@@ -45,23 +62,6 @@ namespace VIVE.OpenXR.CompositionLayer.Samples.Passthrough
SetPassthroughMesh();
}
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.B)) //Set Passthrough as Overlay
{
SetPassthroughToOverlay();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.A)) //Set Passthrough as Underlay
{
SetPassthroughToUnderlay();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.X)) //Switch to world lock
{
SetWorldLock();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.Y)) //Switch to head lock
{
SetHeadLock();
}
}
public void SetPassthroughToOverlay()