UnityEditor.NetworkDiscoveryEditor.DrawControls C# (CSharp) Method

DrawControls() private method

private DrawControls ( ) : void
return void
        private void DrawControls()
        {
            if (this.m_Discovery != null)
            {
                EditorGUI.BeginChangeCheck();
                EditorGUILayout.PropertyField(this.m_BroadcastPortProperty, this.m_BroadcastPortLabel, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_BroadcastKeyProperty, this.m_BroadcastKeyLabel, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_BroadcastVersionProperty, this.m_BroadcastVersionLabel, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_BroadcastSubVersionProperty, this.m_BroadcastSubVersionLabel, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_BroadcastIntervalProperty, this.m_BroadcastIntervalLabel, new GUILayoutOption[0]);
                EditorGUILayout.PropertyField(this.m_UseNetworkManagerProperty, this.m_UseNetworkManagerLabel, new GUILayoutOption[0]);
                if (this.m_Discovery.useNetworkManager)
                {
                    EditorGUILayout.LabelField(this.m_BroadcastDataLabel, new GUIContent(this.m_BroadcastDataProperty.stringValue), new GUILayoutOption[0]);
                }
                else
                {
                    EditorGUILayout.PropertyField(this.m_BroadcastDataProperty, this.m_BroadcastDataLabel, new GUILayoutOption[0]);
                }
                EditorGUILayout.Separator();
                EditorGUILayout.PropertyField(this.m_ShowGUIProperty, new GUILayoutOption[0]);
                if (this.m_Discovery.showGUI)
                {
                    EditorGUILayout.PropertyField(this.m_OffsetXProperty, new GUILayoutOption[0]);
                    EditorGUILayout.PropertyField(this.m_OffsetYProperty, new GUILayoutOption[0]);
                }
                if (EditorGUI.EndChangeCheck())
                {
                    base.serializedObject.ApplyModifiedProperties();
                }
                if (Application.isPlaying)
                {
                    EditorGUILayout.Separator();
                    EditorGUILayout.LabelField("hostId", this.m_Discovery.hostId.ToString(), new GUILayoutOption[0]);
                    EditorGUILayout.LabelField("running", this.m_Discovery.running.ToString(), new GUILayoutOption[0]);
                    EditorGUILayout.LabelField("isServer", this.m_Discovery.isServer.ToString(), new GUILayoutOption[0]);
                    EditorGUILayout.LabelField("isClient", this.m_Discovery.isClient.ToString(), new GUILayoutOption[0]);
                }
            }
        }