Skip to content

Commit 1cdf316

Browse files
authored
Merge pull request #120 from D3fau4/master
Bug: GameCore doesn't support XR which causes compilation issues
2 parents e08bb0d + 510efa9 commit 1cdf316

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Runtime/Advanced/G_AdvancedData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using UnityEngine;
1515
using UnityEngine.UI;
1616

17-
#if GRAPHY_XR && !UNITY_TVOS
17+
#if GRAPHY_XR && !UNITY_TVOS && !UNITY_GAMECORE
1818
using UnityEngine.XR;
1919
#endif
2020

@@ -47,7 +47,7 @@ public class G_AdvancedData : MonoBehaviour, IMovable, IModifiableState
4747
[SerializeField] private Text m_gameWindowResolutionText = null;
4848
[SerializeField] private Text m_gameVRResolutionText = null;
4949

50-
#if GRAPHY_XR && !UNITY_TVOS
50+
#if GRAPHY_XR && !UNITY_TVOS && !UNITY_GAMECORE
5151
private readonly List<XRDisplaySubsystem> m_displaySubsystems = new List<XRDisplaySubsystem>();
5252
#endif
5353

@@ -120,7 +120,7 @@ private void Update()
120120

121121
m_gameWindowResolutionText.text = m_sb.ToString();
122122

123-
#if GRAPHY_XR && !UNITY_TVOS
123+
#if GRAPHY_XR && !UNITY_TVOS && !UNITY_GAMECORE
124124
// If XR enabled, update screen XR resolution
125125
if( XRSettings.enabled )
126126
{

0 commit comments

Comments
 (0)