I’m working on a project in PlayCanvas and my scene has reached the maximum size limit. Because of this, I’m unable to add more assets or make further changes.
I want to ask:
Is there a way to increase the scene size limit (for example, through project settings or subscription level)?
If not, what are the best practices for optimization so that the scene stays within the allowed size?
Should I split the project into multiple smaller scenes?
Should I compress or re-organize assets?
Are there specific tips for reducing memory usage without losing quality?
Any guidance, recommended workflows, or references to documentation would be really helpful.
There’s other things you can do but they likely are specific to your project. eg. Do all the entities need to be there in the scene at the same time? Can you add/destroy entities/templates as users select/move stuff. Do all the assets need to be loaded at once or can the loaded/unloaded when needed.
Our project is such that we want to work in a single scene because it will be beneficial for us. If we create separate scenes, it will cause many problems. There might be some other way as well.
Our project is such that we want to work in a single scene because it will be beneficial for us. If we create separate scenes, it will cause many problems. There might be some other way as well.
At the moment, there is no other choice. There is a hard limit on the scene hierarchy JSON size
I would be surprised if there wasn’t some small workarounds that allow you to split into multiple scenes/templates and load at runtime
No worries! Which entities would you like to delete? I can at least get those deleted to allow you to continue while i find the root cause on another branch
Update: I have managed to find the corrupt entity and fix it so you should now be able to delete entities
@KPal Well I have stucked in the very same problem again
After deleting a lot of things which could be deleted from the scene I thought I won’t face the issue again
But after doing some of the work in scene like adding tags to entities i am facing the same issue again
can’t even move the entity as well,
can’t add tags anymore,
Having the same error of can not save changes please refresh the editor
Would you please check it once again and resolve the issue
and guide me as well why am I getting this error all over again and how can I prevent it for the next time
Yes, please remove the corrupted files and entities, and also let us know how to identify corrupted entities and files so that we can handle it ourselves as well
I have cloned the main branch into a branch called test but I do not see any issues with creating and deleting or moving entities? Could you replicate in this branch so I can validate that the issue still persists. Thanks.