Skip to content

Commit 451cbfd

Browse files
StayTalmRene Damm
authored andcommitted
CHANGE: Remove XR layout; these will be re-added to their respective packages (#837).
1 parent 58d857c commit 451cbfd

28 files changed

+24149
-1486
lines changed

Assets/QA/Tests/XRDeviceActions/ARFoundation/ARFoundationActions.unity

Lines changed: 1391 additions & 0 deletions
Large diffs are not rendered by default.

Assets/QA/Tests/XRDeviceActions/ARFoundation/ARFoundationActions.unity.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/QA/Tests/XRDeviceActions/MagicLeap.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
using UnityEngine.UI;
5+
using UnityEngine.InputSystem;
6+
#if UNITY_MAGIC_LEAP
7+
using UnityEngine.XR.MagicLeap;
8+
#endif
9+
10+
public class ControlMLEyes : MonoBehaviour
11+
{
12+
public Toggle uiToggle;
13+
14+
#if UNITY_MAGIC_LEAP
15+
void Update()
16+
{
17+
if (uiToggle == null)
18+
return;
19+
20+
bool desiredState = uiToggle.isOn;
21+
22+
MagicLeapLightwear device = InputSystem.GetDevice<MagicLeapLightwear>();
23+
if (device != null)
24+
{
25+
if (desiredState != device.EyesEnabled)
26+
{
27+
device.EyesEnabled = desiredState;
28+
}
29+
}
30+
}
31+
32+
#endif
33+
}

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/MagicLeap.cs.meta renamed to Assets/QA/Tests/XRDeviceActions/MagicLeap/ControlMLEyes.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)