diff --git a/Assets/Mirror/Editor/NetworkBehaviourInspector.cs b/Assets/Mirror/Editor/NetworkBehaviourInspector.cs index e4d88da81..3f272bcb2 100644 --- a/Assets/Mirror/Editor/NetworkBehaviourInspector.cs +++ b/Assets/Mirror/Editor/NetworkBehaviourInspector.cs @@ -122,11 +122,11 @@ public void Draw() for (int i = 0; i < syncObjectFields.Count; i++) { - DrawSyncList(syncObjectFields[i]); + DrawSyncObject(syncObjectFields[i]); } } - void DrawSyncList(SyncObjectField syncObjectField) + void DrawSyncObject(SyncObjectField syncObjectField) { syncObjectField.visible = EditorGUILayout.Foldout(syncObjectField.visible, syncObjectField.label); if (syncObjectField.visible)