Skip to content

Commit cf16315

Browse files
committed
fix: Fixed NetworkingManager time resync inspector
1 parent d9af8fc commit cf16315

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
@@ -283,7 +283,11 @@ public override void OnInspectorGUI()
283283
}
284284

285285
EditorGUILayout.PropertyField(enableTimeResyncProperty);
286-
EditorGUILayout.PropertyField(timeResyncIntervalProperty);
286+
287+
using (new EditorGUI.DisabledScope(!networkingManager.NetworkConfig.EnableTimeResync))
288+
{
289+
EditorGUILayout.PropertyField(timeResyncIntervalProperty);
290+
}
287291

288292
EditorGUILayout.LabelField("Performance", EditorStyles.boldLabel);
289293
EditorGUILayout.PropertyField(receiveTickrateProperty);

0 commit comments

Comments
 (0)