I have a list of modules that inherit from a parent module, and I have no issues with that. The data of each module is displayed in the list without any problems, as shown in the following image.
The problem arises when attempting to use the list’s reorder function. When moving elements, one of them is deleted, and the list ends up showing two elements that reference the same element in the list. This also deletes the information that was stored within the object that was overwritten.
Is this error documented? Does it have to do with my implementation or how reorderable lists work?
"No, the information I’m working with is inside a serializable object [system.Serializable], and it’s inside a scriptableObj . I’m not using a custom editor, it’s directly what the scriptableObj displays.
Well I suppose drop the SerializeField attribute and see if that changes anything.
Otherwise probably just a bug in Unity’s default handling of SerializeReference. You really need some kind of addon support to make use of that attribute unfortunately.
Might be worth a bug report? Iunno. I would just get Odin inspector.