I am trying to display an array of items inside an editor window using SerializedProperty. The property gets found, and then array is drawn. I can increase the size of the array, but I can’t actually put items in it.
My code, from the OnGUI function of an EditorWindow:
SerializedObject so = new SerializedObject(this);
SerializedProperty sp = so.FindProperty("weapons");
EditorGUILayout.PropertyField(sp, true);
so.ApplyModifiedProperties();
I’m in Unity 2020.2.2f1. This worked just fine before upgrading. I imagine this is possibly an editor bug, but I’d like to avoid getting my team to upgrade again if I can manage…