Skip to content

Commit 2f4f88f

Browse files
committed
Reset OverrideFocusedObject to null in test scene
Reset OverrideFocusedObject to null in test scene
1 parent a9b3289 commit 2f4f88f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Assets/HoloToolkit/Input/Tests/Scripts/TestOverrideFocusedObject.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ namespace HoloToolkit.Unity.InputModule.Tests
44
{
55
public class TestOverrideFocusedObject : MonoBehaviour, IInputClickHandler
66
{
7+
InputManager inputManager;
78
TextMesh textMesh;
89

910
void Start()
1011
{
11-
InputManager inputManager = InputManager.Instance;
12+
inputManager = InputManager.Instance;
1213

1314
if (inputManager != null)
1415
{
@@ -20,9 +21,10 @@ void Start()
2021

2122
public void OnInputClicked(InputClickedEventData eventData)
2223
{
23-
if (textMesh != null)
24+
if (textMesh != null && inputManager != null)
2425
{
25-
textMesh.text = "Air tap worked!";
26+
textMesh.text = "Air tap worked and OverrideFocusedObject is null.";
27+
inputManager.OverrideFocusedObject = null;
2628
}
2729
}
2830
}

ProjectSettings/GraphicsSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GraphicsSettings:
4040
type: 0}
4141
m_TierSettings_Tier1:
4242
renderingPath: 1
43-
useCascadedShadowMaps: 1
43+
useCascadedShadowMaps: 0
4444
m_TierSettings_Tier2:
4545
renderingPath: 1
4646
useCascadedShadowMaps: 1

0 commit comments

Comments
 (0)