We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80eeb47 commit 4a07161Copy full SHA for 4a07161
org.mixedrealitytoolkit.input/Utilities/MRTKInputFocusManager.cs
@@ -24,10 +24,9 @@ public sealed class MRTKInputFocusManager : MonoBehaviour
24
/// <summary>
25
/// Whether the current XrSession has focus or not.
26
/// </summary>
27
- public static bool HasFocus =>
28
-#if UNITY_EDITOR
29
- true;
30
-#elif SNAPDRAGON_SPACES_PRESENT
+ /// <remarks>Always <see langword="true"/> in the editor.</remarks>
+ public static bool HasFocus => Application.isEditor ||
+#if SNAPDRAGON_SPACES_PRESENT
31
lastSessionState == 5;
32
#else
33
Application.isFocused;
0 commit comments