private void Connect()
 {
     HolographicAutomation.SetEmulationMode(m_Mode);
     PerceptionRemoting.SetRemoteDeviceVersion(m_DeviceVersion);
     PerceptionRemoting.SetVideoEncodingParameters(m_MaxBitrateKbps);
     PerceptionRemoting.SetEnableVideo(m_EnableVideo);
     PerceptionRemoting.SetEnableAudio(m_EnableAudio);
     PerceptionRemoting.Connect(m_RemoteMachineAddress);
 }
示例#2
0
        private void RemotingPreferencesOnGUI()
        {
            m_DeviceVersion = (RemoteDeviceVersion)EditorGUILayout.Popup(s_DeviceVersionText, (int)m_DeviceVersion, s_DeviceVersionStrings);
            PerceptionRemoting.SetRemoteDeviceVersion(m_DeviceVersion);

            EditorGUI.BeginChangeCheck();
            m_RemoteMachineAddress = EditorGUILayout.DelayedTextFieldDropDown(s_RemoteMachineText, m_RemoteMachineAddress, m_RemoteMachineHistory);
            if (EditorGUI.EndChangeCheck())
            {
                UpdateRemoteMachineHistory();
            }
            m_EnableVideo    = EditorGUILayout.Toggle(s_EnableVideoText, m_EnableVideo);
            m_EnableAudio    = EditorGUILayout.Toggle(s_EnableAudioText, m_EnableAudio);
            m_MaxBitrateKbps = EditorGUILayout.IntSlider(s_MaxBitrateText, m_MaxBitrateKbps, 1024, 99999);
        }