protected void ShowConfigInfo() { bool customConfig = this.m_NetworkManager.customConfig; EditorGUILayout.PropertyField(this.m_CustomConfigProperty, new GUIContent("Advanced Configuration"), new GUILayoutOption[0]); if (this.m_CustomConfigProperty.boolValue && !customConfig && this.m_NetworkManager.channels.Count == 0) { this.m_NetworkManager.channels.Add(QosType.ReliableSequenced); this.m_NetworkManager.channels.Add(QosType.Unreliable); this.m_NetworkManager.customConfig = true; this.m_CustomConfigProperty.serializedObject.Update(); this.m_ChannelList.serializedProperty.serializedObject.Update(); } if (!this.m_NetworkManager.customConfig) { return; } ++EditorGUI.indentLevel; SerializedProperty property1 = this.serializedObject.FindProperty("m_MaxConnections"); NetworkManagerEditor.ShowPropertySuffix(this.m_MaxConnectionsLabel, property1, "connections"); this.m_ChannelList.DoLayoutList(); property1.isExpanded = EditorGUILayout.Foldout(property1.isExpanded, "Timeouts"); if (property1.isExpanded) { ++EditorGUI.indentLevel; SerializedProperty property2 = this.serializedObject.FindProperty("m_ConnectionConfig.m_MinUpdateTimeout"); SerializedProperty property3 = this.serializedObject.FindProperty("m_ConnectionConfig.m_ConnectTimeout"); SerializedProperty property4 = this.serializedObject.FindProperty("m_ConnectionConfig.m_DisconnectTimeout"); SerializedProperty property5 = this.serializedObject.FindProperty("m_ConnectionConfig.m_PingTimeout"); NetworkManagerEditor.ShowPropertySuffix(this.m_MinUpdateTimeoutLabel, property2, "millisec"); NetworkManagerEditor.ShowPropertySuffix(this.m_ConnectTimeoutLabel, property3, "millisec"); NetworkManagerEditor.ShowPropertySuffix(this.m_DisconnectTimeoutLabel, property4, "millisec"); NetworkManagerEditor.ShowPropertySuffix(this.m_PingTimeoutLabel, property5, "millisec"); --EditorGUI.indentLevel; } SerializedProperty property6 = this.serializedObject.FindProperty("m_GlobalConfig.m_ThreadAwakeTimeout"); property6.isExpanded = EditorGUILayout.Foldout(property6.isExpanded, "Global Config"); if (property6.isExpanded) { ++EditorGUI.indentLevel; SerializedProperty property2 = this.serializedObject.FindProperty("m_GlobalConfig.m_ReactorModel"); SerializedProperty property3 = this.serializedObject.FindProperty("m_GlobalConfig.m_ReactorMaximumReceivedMessages"); SerializedProperty property4 = this.serializedObject.FindProperty("m_GlobalConfig.m_ReactorMaximumSentMessages"); NetworkManagerEditor.ShowPropertySuffix(this.m_ThreadAwakeTimeoutLabel, property6, "millisec"); EditorGUILayout.PropertyField(property2, this.m_ReactorModelLabel, new GUILayoutOption[0]); NetworkManagerEditor.ShowPropertySuffix(this.m_ReactorMaximumReceivedMessagesLabel, property3, "messages"); NetworkManagerEditor.ShowPropertySuffix(this.m_ReactorMaximumSentMessagesLabel, property4, "messages"); --EditorGUI.indentLevel; } --EditorGUI.indentLevel; }