We got this question via email support and were having trouble having multiple instances of a complex model in the scene with the error: ‘Error while saving changes. Please refresh the editor’ when cloning.
The reply we sent was:
Yes, there is a limit of the size of the scene when it’s in JSON which is about 11MB.
If you have a model that has that many entities in its hierarchy, you would either have to:
- Instance/create them at runtime rather than in the scene in the Editor. Example here (https://playcanvas.com/project/692381/overview/lazy-load-with-template-proxy)
- Untick import hierarchy for the asset tasks in the project settings and use the Model Component instead. This means that the entity hierarchy won’t be added into the scene data