Add AR SCript demo

This commit is contained in:
FlorianSpeicher
2025-06-27 15:24:01 +02:00
parent 7a561d91c9
commit 8122224391
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using UnityEngine;
namespace UI
{
public class ARToggleButton: MonoBehaviour
{
public OVRPassthroughLayer passthroughLayer;
private bool _isPassthroughOn = true;
public void TogglePassthrough()
{
_isPassthroughOn = !_isPassthroughOn;
passthroughLayer.enabled = _isPassthroughOn;
Debug.Log("Passthrough is now: " + _isPassthroughOn);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1b59dae33d214a62aa135792503fcac9
timeCreated: 1751030528