I have a scriptableObject containing a list of my characters.
Basic : public class UnitsTeamData : ScriptableObject { public List<UnitSerializer> units; }
The UnitSerializer class has a list that I want to setup by default using a static method, so that when I add an item to my SO list in the inspector, it creates it with static function.
Tried calling static function in the UnitSerializer constructor but it is not called from the inspector SO + button.
In fact, the constructor gets called, I cann follow the code flow via the breakpoints, but it seems to get overwritten and displays empty values (0, empty lists, nulls…)
Am I missing something?