Skip to content
This repository was archived by the owner on Mar 21, 2023. It is now read-only.

Commit 311420d

Browse files
authored
Merge pull request #14 from akihiro0105/develop
スタンドアロンビルド時のnamespaceエラーを修正
2 parents 250b504 + 3589f88 commit 311420d

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Assets/HoloLensModule/Environment/Scripts/TrackingWorldState.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections;
33
using System.Collections.Generic;
44
using UnityEngine;
5+
#if UNITY_EDITOR||WINDOWS_UWP
56
#if UNITY_2017_2_OR_NEWER
67
using UnityEngine.XR.WSA;
78
#else
@@ -43,3 +44,4 @@ private void OnPositionalLocatorStateChanged(PositionalLocatorState oldstate, Po
4344
}
4445
}
4546
}
47+
#endif

Assets/HoloLensModule/Environment/Scripts/WorldAnchorControl.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using System.Collections.Generic;
33
using UnityEngine;
4+
#if UNITY_EDITOR||WINDOWS_UWP
45
#if UNITY_2017_2_OR_NEWER
56
using UnityEngine.XR.WSA;
67
using UnityEngine.XR.WSA.Persistence;
@@ -195,3 +196,4 @@ private void onSaveTrackingChanged(WorldAnchor self, bool located)
195196
#endregion
196197
}
197198
}
199+
#endif

Assets/HoloLensModule/Input/Scripts/InputControlEvent.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections;
22
using System.Collections.Generic;
3-
using HoloLensModule.Utility;
3+
#if UNITY_EDITOR||WINDOWS_UWP
44
using UnityEngine;
55
#if UNITY_2017_2_OR_NEWER
66
using UnityEngine.XR.WSA;
@@ -196,3 +196,4 @@ private void initWinMRSetting()
196196
}
197197
}
198198
}
199+
#endif

Assets/HoloLensModule/Utility/Scripts/SkyboxSetting.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using System.Collections.Generic;
33
using UnityEngine;
4+
#if UNITY_EDITOR||WINDOWS_UWP
45
#if UNITY_2017_2_OR_NEWER
56
using UnityEngine.XR.WSA;
67
#endif
@@ -22,3 +23,4 @@ void Start()
2223
}
2324
}
2425
}
26+
#endif

0 commit comments

Comments
 (0)