Generating prefab JSON

I have a pipeline which generate sprites and builds a prefab in JSON. It runs automatically using command-line scripts. The prefab is then loaded into cocoscreator.

This works great… except that the “_fileId” attribute is not created and I get errors in the editor.

The workaround is to refresh the prefab in creator by dragging it back into the assets window, so that it regenerates all the nodes in the prefab, but now with the _fileId computed.

I want to avoid this step, as it prevents complete pipeline automation.

Does anyone know how the _fileId is generated? It looks like a base64 uuid.

1 Like

I’m also trying to understand the structure. Is there any documentation about _fileId and asset uuid relation? I want to get asset uuid from node._prefab data. Any advices? I need to load prefab and instantiate node from it. I only have fileId data to do that.