Skip to content

Commit af3d032

Browse files
committed
feat(editor): Made maxBehaviourUpdatesPerTick property disabled when networkedVars are disabled
1 parent 01df746 commit af3d032

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MLAPI-Editor/NetworkingManagerEditor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,12 @@ public override void OnInspectorGUI()
274274
EditorGUILayout.PropertyField(maxReceiveEventsPerTickRateProperty);
275275
EditorGUILayout.PropertyField(sendTickrateProperty);
276276
EditorGUILayout.PropertyField(eventTickrateProperty);
277-
EditorGUILayout.PropertyField(maxBehaviourUpdatesPerTickProperty);
278277
EditorGUILayout.PropertyField(enableNetworkedVarProperty);
278+
279+
using (new EditorGUI.DisabledScope(!networkingManager.NetworkConfig.EnableNetworkedVar))
280+
{
281+
EditorGUILayout.PropertyField(maxBehaviourUpdatesPerTickProperty);
282+
}
279283

280284
EditorGUILayout.LabelField("Connection", EditorStyles.boldLabel);
281285
EditorGUILayout.PropertyField(connectionApprovalProperty);

0 commit comments

Comments
 (0)