Skip to content

Commit 4a07161

Browse files
committed
Update MRTKInputFocusManager.cs
1 parent 80eeb47 commit 4a07161

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

org.mixedrealitytoolkit.input/Utilities/MRTKInputFocusManager.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ public sealed class MRTKInputFocusManager : MonoBehaviour
2424
/// <summary>
2525
/// Whether the current XrSession has focus or not.
2626
/// </summary>
27-
public static bool HasFocus =>
28-
#if UNITY_EDITOR
29-
true;
30-
#elif SNAPDRAGON_SPACES_PRESENT
27+
/// <remarks>Always <see langword="true"/> in the editor.</remarks>
28+
public static bool HasFocus => Application.isEditor ||
29+
#if SNAPDRAGON_SPACES_PRESENT
3130
lastSessionState == 5;
3231
#else
3332
Application.isFocused;

0 commit comments

Comments
 (0)