Hello,
I have a little levels generator. Script creating scriptable (levels list) with list filled with scriptables (levels). Each level have also a list with scriptables. Almost everything works pretty well but after Unity restart, level scriptable is empty.
This is a level class:
public class LevelPanelsList : ScriptableObject
{
public List<LevelPanel> lvlPanelsList = new List<LevelPanel>();
}
I using this line to save my assets when i creating them:
AssetDatabase.SaveAssets();
When I put everything manualy to the list, click ctrl+s and restart Unity it working but it’s not the way i would like to do this.
What I doing wrong?