File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Assets/HoloToolkit/Input/Tests/Scripts Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments