Hi, I’m having some trouble using the LevelEditor components at the moment.
Is it possible to save additional properties of a level when saving via levelEditor.saveCurrentLevel()?
For example, the levels in our game have varying width, height, they have a static Player entity whose x and y values are different in each level, and so on.
When I save (export) the level, a JSON file gets generated in my documents folder, but it appears only the entities that were stated in “toStoreEntityTypes” are saved, but no properties of the level itself?
Furthermore, i kind of don’t get how to save a level to authorGeneratedLevels?
After calling saveCurrentLevel() they don’t appear in the LevelSelectionList even after calling
levelEditor.loadAllLevelsFromStorageLocation(levelEditor.authorGeneratedLevelsLocation)
and then in LevelEditor:
onLoadAllLevelsFromStorageLocationFinished: {
console.log("load finished, levels: " + JSON.stringify(allLevelsData))
worldScene.levelSelector.levelMetaDataArray = allLevelsData
}
Did I miss something?
Cheers, Chrisu