File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Assets/HoloToolkit/SharingWithUNET/Scripts Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,15 @@ public void OnInputClicked(InputClickedEventData eventData)
9898 Moving = ! Moving ;
9999 if ( Moving )
100100 {
101- inputManager . OverrideFocusedObject = this . gameObject ;
101+ inputManager . AddGlobalListener ( gameObject ) ;
102102 if ( SpatialMappingManager . Instance != null )
103103 {
104104 SpatialMappingManager . Instance . DrawVisualMeshes = true ;
105105 }
106106 }
107107 else
108108 {
109- inputManager . OverrideFocusedObject = null ;
109+ inputManager . RemoveGlobalListener ( gameObject ) ;
110110 if ( SpatialMappingManager . Instance != null )
111111 {
112112 SpatialMappingManager . Instance . DrawVisualMeshes = false ;
@@ -121,6 +121,8 @@ public void OnInputClicked(InputClickedEventData eventData)
121121 PlayerController . Instance . SendSharedTransform ( this . gameObject , localPosition , localRotation ) ;
122122 }
123123 }
124+
125+ eventData . Use ( ) ;
124126 }
125127 }
126128 }
You can’t perform that action at this time.
0 commit comments