@@ -32,6 +32,7 @@ public class NetworkingManagerEditor : Editor
32
32
private SerializedProperty connectionApprovalProperty ;
33
33
private SerializedProperty secondsHistoryProperty ;
34
34
private SerializedProperty enableTimeResyncProperty ;
35
+ private SerializedProperty enableNetworkedVarProperty ;
35
36
private SerializedProperty forceSamePrefabsProperty ;
36
37
private SerializedProperty usePrefabSyncProperty ;
37
38
private SerializedProperty rpcHashSizeProperty ;
@@ -104,6 +105,7 @@ private void Init()
104
105
connectionApprovalProperty = networkConfigProperty . FindPropertyRelative ( "ConnectionApproval" ) ;
105
106
secondsHistoryProperty = networkConfigProperty . FindPropertyRelative ( "SecondsHistory" ) ;
106
107
enableTimeResyncProperty = networkConfigProperty . FindPropertyRelative ( "EnableTimeResync" ) ;
108
+ enableNetworkedVarProperty = networkConfigProperty . FindPropertyRelative ( "EnableNetworkedVar" ) ;
107
109
forceSamePrefabsProperty = networkConfigProperty . FindPropertyRelative ( "ForceSamePrefabs" ) ;
108
110
usePrefabSyncProperty = networkConfigProperty . FindPropertyRelative ( "UsePrefabSync" ) ;
109
111
rpcHashSizeProperty = networkConfigProperty . FindPropertyRelative ( "RpcHashSize" ) ;
@@ -136,6 +138,7 @@ private void CheckNullProperties()
136
138
connectionApprovalProperty = networkConfigProperty . FindPropertyRelative ( "ConnectionApproval" ) ;
137
139
secondsHistoryProperty = networkConfigProperty . FindPropertyRelative ( "SecondsHistory" ) ;
138
140
enableTimeResyncProperty = networkConfigProperty . FindPropertyRelative ( "EnableTimeResync" ) ;
141
+ enableNetworkedVarProperty = networkConfigProperty . FindPropertyRelative ( "EnableNetworkedVar" ) ;
139
142
forceSamePrefabsProperty = networkConfigProperty . FindPropertyRelative ( "ForceSamePrefabs" ) ;
140
143
usePrefabSyncProperty = networkConfigProperty . FindPropertyRelative ( "UsePrefabSync" ) ;
141
144
rpcHashSizeProperty = networkConfigProperty . FindPropertyRelative ( "RpcHashSize" ) ;
@@ -272,6 +275,7 @@ public override void OnInspectorGUI()
272
275
EditorGUILayout . PropertyField ( sendTickrateProperty ) ;
273
276
EditorGUILayout . PropertyField ( eventTickrateProperty ) ;
274
277
EditorGUILayout . PropertyField ( maxBehaviourUpdatesPerTickProperty ) ;
278
+ EditorGUILayout . PropertyField ( enableNetworkedVarProperty ) ;
275
279
276
280
EditorGUILayout . LabelField ( "Connection" , EditorStyles . boldLabel ) ;
277
281
EditorGUILayout . PropertyField ( connectionApprovalProperty ) ;
0 commit comments