Skip to content

Commit 2437454

Browse files
authored
Fix:Method redirects to native call in iOS Editor
Fixed a bug where the call to this method redirects to the native library in the editor when the platform is switched to iOS. As a result an exception was thrown every time.
1 parent 2c1760d commit 2437454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Plugins/DetectHeadset.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class DetectHeadset {
99

1010
static public bool Detect() {
1111

12-
#if UNITY_IOS
12+
#if UNITY_IOS && !UNITY_EDITOR
1313
return _Detect();
1414

1515
#elif UNITY_ANDROID && !UNITY_EDITOR

0 commit comments

Comments
 (0)