@@ -22,6 +22,7 @@ public class NetworkingManagerEditor : Editor
22
22
23
23
// NetworkConfig fields
24
24
private SerializedProperty protocolVersionProperty ;
25
+ private SerializedProperty allowRuntimeSceneChanges ;
25
26
private SerializedProperty networkTransportProperty ;
26
27
private SerializedProperty receiveTickrateProperty ;
27
28
private SerializedProperty maxReceiveEventsPerTickRateProperty ;
@@ -99,6 +100,7 @@ private void Init()
99
100
100
101
// NetworkConfig properties
101
102
protocolVersionProperty = networkConfigProperty . FindPropertyRelative ( "ProtocolVersion" ) ;
103
+ allowRuntimeSceneChanges = networkConfigProperty . FindPropertyRelative ( "AllowRuntimeSceneChanges" ) ;
102
104
networkTransportProperty = networkConfigProperty . FindPropertyRelative ( "NetworkTransport" ) ;
103
105
receiveTickrateProperty = networkConfigProperty . FindPropertyRelative ( "ReceiveTickrate" ) ;
104
106
maxReceiveEventsPerTickRateProperty = networkConfigProperty . FindPropertyRelative ( "MaxReceiveEventsPerTickRate" ) ;
@@ -136,6 +138,7 @@ private void CheckNullProperties()
136
138
137
139
// NetworkConfig properties
138
140
protocolVersionProperty = networkConfigProperty . FindPropertyRelative ( "ProtocolVersion" ) ;
141
+ allowRuntimeSceneChanges = networkConfigProperty . FindPropertyRelative ( "AllowRuntimeSceneChanges" ) ;
139
142
networkTransportProperty = networkConfigProperty . FindPropertyRelative ( "NetworkTransport" ) ;
140
143
receiveTickrateProperty = networkConfigProperty . FindPropertyRelative ( "ReceiveTickrate" ) ;
141
144
maxReceiveEventsPerTickRateProperty = networkConfigProperty . FindPropertyRelative ( "MaxReceiveEventsPerTickRate" ) ;
@@ -322,6 +325,7 @@ public override void OnInspectorGUI()
322
325
323
326
EditorGUILayout . LabelField ( "Scene Management" , EditorStyles . boldLabel ) ;
324
327
EditorGUILayout . PropertyField ( loadSceneTimeOutProperty ) ;
328
+ EditorGUILayout . PropertyField ( allowRuntimeSceneChanges ) ;
325
329
326
330
EditorGUILayout . LabelField ( "Cryptography" , EditorStyles . boldLabel ) ;
327
331
EditorGUILayout . PropertyField ( enableEncryptionProperty ) ;
0 commit comments