version 2.3.0
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user