Unity version 2020.3.5f1
[System.Serializable]
public class LocalizationData
{
/* every next field is serializable */
public TasksDictionary[] tasksData;
public LocalizationItem[] gameItems;
public SubCategories[] subCategories;
public char[] randomLetters;
}
[InitializeOnLoad]
public class LocalizedTextEditor : EditorWindow
{
public LocalizationData localizationData;
private bool localizationDataIsReady = true;
/* ... code */
private void OnGUI()
{
/* ... code */
if (localizationDataIsReady)
{
if (GUILayout.Button("Save data"))
{
SaveGameData();
}
SerializedObject serializedObject = new SerializedObject(this);
SerializedProperty serializedProperty = serializedObject.FindProperty("localizationData");
EditorGUILayout.PropertyField(serializedProperty, true);
serializedObject.ApplyModifiedProperties();
}
}
}
If I open one field, the others do not move down, but remain in their place, overlapping the content of the opened field. Unity 2019 draws it well, but 2020 don’t. I think it is bug. The video shows this more clearly