@@ -25,6 +25,8 @@ internal class HolographicEmulationWindow : EditorWindow
2525 [ SerializeField ]
2626 private EmulationMode m_Mode = EmulationMode . None ;
2727 [ SerializeField ]
28+ private RemoteDeviceVersion m_DeviceVersion = RemoteDeviceVersion . V1 ;
29+ [ SerializeField ]
2830 private int m_RoomIndex = 0 ;
2931 [ SerializeField ]
3032 private GestureHand m_Hand = GestureHand . Right ;
@@ -43,6 +45,7 @@ internal class HolographicEmulationWindow : EditorWindow
4345
4446 private static GUIContent s_ConnectionStatusText = EditorGUIUtility . TrTextContent ( "Connection Status" ) ;
4547 private static GUIContent s_EmulationModeText = EditorGUIUtility . TrTextContent ( "Emulation Mode" ) ;
48+ private static GUIContent s_DeviceVersionText = EditorGUIUtility . TrTextContent ( "Device Version" ) ;
4649 private static GUIContent s_RoomText = EditorGUIUtility . TrTextContent ( "Room" ) ;
4750 private static GUIContent s_HandText = EditorGUIUtility . TrTextContent ( "Gesture Hand" ) ;
4851 private static GUIContent s_RemoteMachineText = EditorGUIUtility . TrTextContent ( "Remote Machine" ) ;
@@ -64,6 +67,12 @@ internal class HolographicEmulationWindow : EditorWindow
6467 EditorGUIUtility . TrTextContent ( "Simulate in Editor" )
6568 } ;
6669
70+ private static GUIContent [ ] s_DeviceVersionStrings = new GUIContent [ ]
71+ {
72+ EditorGUIUtility . TrTextContent ( "HoloLens (1st Gen)" ) ,
73+ EditorGUIUtility . TrTextContent ( "HoloLens 2" )
74+ } ;
75+
6776 private static GUIContent [ ] s_RoomStrings = new GUIContent [ ]
6877 {
6978 EditorGUIUtility . TrTextContent ( "None" ) ,
@@ -235,6 +244,9 @@ private void UpdateRemoteMachineHistory()
235244
236245 private void RemotingPreferencesOnGUI ( )
237246 {
247+ m_DeviceVersion = ( RemoteDeviceVersion ) EditorGUILayout . Popup ( s_DeviceVersionText , ( int ) m_DeviceVersion , s_DeviceVersionStrings ) ;
248+ PerceptionRemoting . SetRemoteDeviceVersion ( m_DeviceVersion ) ;
249+
238250 EditorGUI . BeginChangeCheck ( ) ;
239251 m_RemoteMachineAddress = EditorGUILayout . DelayedTextFieldDropDown ( s_RemoteMachineText , m_RemoteMachineAddress , m_RemoteMachineHistory ) ;
240252 if ( EditorGUI . EndChangeCheck ( ) )
0 commit comments