File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Assets/HoloToolkit/Input/Scripts/Utilities Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License. See LICENSE in the project root for license information.
33
4- using HoloToolkit . Unity . InputModule ;
54using UnityEngine ;
65#if UNITY_2017_2_OR_NEWER
76using UnityEngine . XR . WSA . Input ;
@@ -55,11 +54,13 @@ protected virtual void OnEnable()
5554 {
5655 SetChildrenActive ( false ) ;
5756
57+ #if UNITY_WSA && UNITY_2017_2_OR_NEWER
5858 // Look if the controller has loaded.
5959 if ( MotionControllerVisualizer . Instance . TryGetControllerModel ( handedness , out controller ) )
6060 {
6161 AttachElementToController ( controller ) ;
6262 }
63+ #endif
6364
6465 MotionControllerVisualizer . Instance . OnControllerModelLoaded += AttachElementToController ;
6566 MotionControllerVisualizer . Instance . OnControllerModelUnloaded += DetachElementFromController ;
You can’t perform that action at this time.
0 commit comments