version 2.3.0

This commit is contained in:
Sean Lu(呂祥榮)
2024-05-15 14:09:18 +08:00
parent 45b4e46f74
commit 7f2a459592
289 changed files with 116381 additions and 5440 deletions

View File

@@ -37,18 +37,22 @@ namespace VIVE.OpenXR.CompositionLayer.Samples.Passthrough
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.B)) //Set Passthrough as Overlay
{
SetPassthroughToOverlay();
if (activePassthroughID != 0) SetPassthroughMesh();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.A)) //Set Passthrough as Underlay
{
SetPassthroughToUnderlay();
if (activePassthroughID != 0) SetPassthroughMesh();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.X)) //Switch to world lock
{
SetWorldLock();
if (activePassthroughID != 0) SetPassthroughMesh();
}
if (VRSInputManager.instance.GetButtonDown(VRSButtonReference.Y)) //Switch to head lock
{
SetHeadLock();
if (activePassthroughID != 0) SetPassthroughMesh();
}
if (passthroughMesh != null && passthroughMeshTransform != null)
@@ -57,10 +61,6 @@ namespace VIVE.OpenXR.CompositionLayer.Samples.Passthrough
{
StartPassthrough();
}
else
{
SetPassthroughMesh();
}
}
}
@@ -114,7 +114,8 @@ namespace VIVE.OpenXR.CompositionLayer.Samples.Passthrough
if (activePassthroughID != 0)
{
scaleModifier = newScaleModifier;
}
SetPassthroughMesh();
}
}
void StartPassthrough()