Importing 'raw' JSON from other projects


#1

Im trying to transfer the assets from a ‘dirty’ project to a ‘clean’ build… Models and animations are downloaded from the project as RAW Jsons… Thus when reexporting these json files into a new project… they are not recognizd as models or animation… but as ‘raw’ json text… Is there a way to transfer these files(I deleted the original fbx animation files and models because they occupy too much space) am I doomed?


How to load a model from json and add it to the scene by code
#2

Unfortunately, you can’t import ‘raw jsons’ as model files.

You have two options here that I can think off here:

  1. If you still have the ‘dirty’ project, fork it and delete all the assets, entities, scripts etc to make it ‘clean’.

  2. Upload the JSON, textures, mapping to an external server (eg Github, your own server etc) and load the model dynamically. Load 3D models at run time from a PlayCanvas application