diff --git a/Assets/Mirror/Editor/NetworkBehaviourInspector.cs b/Assets/Mirror/Editor/NetworkBehaviourInspector.cs index c89dc941f..1be3a23d5 100644 --- a/Assets/Mirror/Editor/NetworkBehaviourInspector.cs +++ b/Assets/Mirror/Editor/NetworkBehaviourInspector.cs @@ -11,10 +11,6 @@ namespace Mirror [CanEditMultipleObjects] public class NetworkBehaviourInspector : Editor { - /// - /// List of all visible syncVars in target class - /// - protected List syncVarNames = new List(); bool syncsAnything; SyncListDrawer syncListDrawer; @@ -60,15 +56,6 @@ void OnEnable() Type scriptClass = target.GetType(); - syncVarNames = new List(); - foreach (FieldInfo field in InspectorHelper.GetAllFields(scriptClass, typeof(NetworkBehaviour))) - { - if (field.IsSyncVar() && field.IsVisibleField()) - { - syncVarNames.Add(field.Name); - } - } - syncListDrawer = new SyncListDrawer(serializedObject.targetObject); syncsAnything = SyncsAnything(scriptClass);