I’m building an Editor Extension for Cocos Creator where I need to parse a JSON file to create a Scene with objects based on the JSON (I have the parsers to do that) and then save the scene into a new file. I have read the documentation about Asset Management, where it recommend to use the _Scene singleton to Save and Load scenes but I can’t find the documentation of that singleton to check all the methods that it provide.
Basically what I need to do on my Editor Extension is Create Scene -> Parse my JSON and create the Nodes into the scene -> Save the scene into a .fire file.
After checking (and printing) the _Scene singleton, it seems that it has a method to create a new scene (“newScene”) but since I don’t have any kind of documentation (and I can’t see the source code of the singleton since is inside the asar package of CC) I don’t know how to use it. Also it seems that _Scene doesn’t have anymore the save() method, as I read on Doc.