Пример #1
0
        private void DoPackageInformationLayout()
        {
            using (new EditorGUILayout.VerticalScope(GUI.skin.box, GUILayout.ExpandWidth(true)))
            {
                EditorGUILayout.DelayedTextField(m_Name, Styles.name);
                EditorGUILayout.DelayedTextField(m_DisplayName, Styles.displayName);
                EditorGUILayout.DelayedTextField(m_Version, Styles.version);
                m_Type.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.type, m_Type.stringValue, PackageInfo.GetPredefinedPackageTypes());

                EditorGUILayout.PropertyField(m_UnityVersionEnabled, Styles.unity);
                if (m_UnityVersionEnabled.boolValue)
                {
                    EditorGUI.showMixedValue = m_UnityMajor.hasMultipleDifferentValues;
                    m_UnityMajor.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.unityMajor,
                                                                                        m_UnityMajor.stringValue, MajorUnityVersions.ToArray());

                    EditorGUI.showMixedValue = m_UnityMinor.hasMultipleDifferentValues;
                    m_UnityMinor.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.unityMinor,
                                                                                        m_UnityMinor.stringValue, MinorUnityVersions.ToArray());

                    EditorGUI.showMixedValue   = m_UnityRelease.hasMultipleDifferentValues;
                    m_UnityRelease.stringValue =
                        EditorGUILayout.DelayedTextField(Styles.unityRelease, m_UnityRelease.stringValue);
                    EditorGUI.showMixedValue = false;
                }
            }
        }
        private void DoPackageInformationLayout()
        {
            using (new EditorGUILayout.VerticalScope(GUI.skin.box, GUILayout.ExpandWidth(true)))
            {
                EditorGUILayout.DelayedTextField(m_Name, Styles.name);
                m_OrganizationName.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.organizationName, m_OrganizationName.stringValue.ToLower(), Connect.UnityConnect.instance.userInfo.organizationNames);
                EditorGUILayout.DelayedTextField(m_DisplayName, Styles.displayName);
                EditorGUILayout.DelayedTextField(m_Version, Styles.version);

                if (isFeatureSet)
                {
                    return;
                }

                EditorGUILayout.PropertyField(m_UnityVersionEnabled, Styles.unity);
                if (m_UnityVersionEnabled.boolValue)
                {
                    EditorGUI.showMixedValue = m_UnityMajor.hasMultipleDifferentValues;
                    m_UnityMajor.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.unityMajor,
                                                                                        m_UnityMajor.stringValue, MajorUnityVersions.ToArray());

                    EditorGUI.showMixedValue = m_UnityMinor.hasMultipleDifferentValues;
                    m_UnityMinor.stringValue = EditorGUILayout.DelayedTextFieldDropDown(Styles.unityMinor,
                                                                                        m_UnityMinor.stringValue, MinorUnityVersions.ToArray());

                    EditorGUI.showMixedValue   = m_UnityRelease.hasMultipleDifferentValues;
                    m_UnityRelease.stringValue =
                        EditorGUILayout.DelayedTextField(Styles.unityRelease, m_UnityRelease.stringValue);
                    EditorGUI.showMixedValue = false;
                }
            }
        }
 private void RemotingPreferencesOnGUI()
 {
     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);
 }
Пример #4
0
 private void RemotingPreferencesOnGUI()
 {
     EditorGUI.BeginChangeCheck();
     this.m_RemoteMachineAddress = EditorGUILayout.DelayedTextFieldDropDown(s_RemoteMachineText, this.m_RemoteMachineAddress, this.m_RemoteMachineHistory);
     if (EditorGUI.EndChangeCheck())
     {
         this.UpdateRemoteMachineHistory();
     }
     this.m_EnableVideo    = EditorGUILayout.Toggle(s_EnableVideoText, this.m_EnableVideo, new GUILayoutOption[0]);
     this.m_EnableAudio    = EditorGUILayout.Toggle(s_EnableAudioText, this.m_EnableAudio, new GUILayoutOption[0]);
     this.m_MaxBitrateKbps = EditorGUILayout.IntSlider(s_MaxBitrateText, this.m_MaxBitrateKbps, 0x400, 0x1869f, new GUILayoutOption[0]);
 }
Пример #5
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);
        }