Levels (Array of LevelDescription, default: empty)
I want to use them in a DataTable based on ChapterDescription. I added some Chapters and some Levels in the Chapters. Changed some StarPercentage values and let some to default.
I can save the DataTable and read the data in Blueprints. This works.
But when I restart the Editor and open the DataTable then all float values that had default values before are set to 0.0. The values that didn’t had the default values are correctly.
I’ve tried to reproduce this myself but haven’t been able to. Are you able to reproduce this issue in a new project? If so, would you be able to attach the broken project so I could take a look at it.
Yes, I can reproduce it. I’ve created a new Project and a very simple structure with one float value (default 1.0). In the corresponding DataTable I’ve added two entrys (1.0 and 2.0). After restarting the Editor the first entry is set to 0.0.
The good news is that this issue seems to be fixed for 4.8, although I’m not sure exactly what fixed it as there have been a lot of changes between the two versions.
I have also noticed that if you open up the struct prior to opening up the data table, then the data table will get the correct default values. You have to do this before you open the data table for the first time otherwise it seems to always have the wrong values for the remainder of that editor session.