@@ -32,6 +32,7 @@ public class NetworkingManagerEditor : Editor
3232 private SerializedProperty connectionApprovalProperty ;
3333 private SerializedProperty secondsHistoryProperty ;
3434 private SerializedProperty enableTimeResyncProperty ;
35+ private SerializedProperty enableNetworkedVarProperty ;
3536 private SerializedProperty forceSamePrefabsProperty ;
3637 private SerializedProperty usePrefabSyncProperty ;
3738 private SerializedProperty rpcHashSizeProperty ;
@@ -104,6 +105,7 @@ private void Init()
104105 connectionApprovalProperty = networkConfigProperty . FindPropertyRelative ( "ConnectionApproval" ) ;
105106 secondsHistoryProperty = networkConfigProperty . FindPropertyRelative ( "SecondsHistory" ) ;
106107 enableTimeResyncProperty = networkConfigProperty . FindPropertyRelative ( "EnableTimeResync" ) ;
108+ enableNetworkedVarProperty = networkConfigProperty . FindPropertyRelative ( "EnableNetworkedVar" ) ;
107109 forceSamePrefabsProperty = networkConfigProperty . FindPropertyRelative ( "ForceSamePrefabs" ) ;
108110 usePrefabSyncProperty = networkConfigProperty . FindPropertyRelative ( "UsePrefabSync" ) ;
109111 rpcHashSizeProperty = networkConfigProperty . FindPropertyRelative ( "RpcHashSize" ) ;
@@ -136,6 +138,7 @@ private void CheckNullProperties()
136138 connectionApprovalProperty = networkConfigProperty . FindPropertyRelative ( "ConnectionApproval" ) ;
137139 secondsHistoryProperty = networkConfigProperty . FindPropertyRelative ( "SecondsHistory" ) ;
138140 enableTimeResyncProperty = networkConfigProperty . FindPropertyRelative ( "EnableTimeResync" ) ;
141+ enableNetworkedVarProperty = networkConfigProperty . FindPropertyRelative ( "EnableNetworkedVar" ) ;
139142 forceSamePrefabsProperty = networkConfigProperty . FindPropertyRelative ( "ForceSamePrefabs" ) ;
140143 usePrefabSyncProperty = networkConfigProperty . FindPropertyRelative ( "UsePrefabSync" ) ;
141144 rpcHashSizeProperty = networkConfigProperty . FindPropertyRelative ( "RpcHashSize" ) ;
@@ -272,6 +275,7 @@ public override void OnInspectorGUI()
272275 EditorGUILayout . PropertyField ( sendTickrateProperty ) ;
273276 EditorGUILayout . PropertyField ( eventTickrateProperty ) ;
274277 EditorGUILayout . PropertyField ( maxBehaviourUpdatesPerTickProperty ) ;
278+ EditorGUILayout . PropertyField ( enableNetworkedVarProperty ) ;
275279
276280 EditorGUILayout . LabelField ( "Connection" , EditorStyles . boldLabel ) ;
277281 EditorGUILayout . PropertyField ( connectionApprovalProperty ) ;
0 commit comments