Cannot run project on both Editor and local environment

I’m setting up our ideal version-controlled environment for PlayCanvas, and hit a big snag. Seems like its impossible to pull in certain information (eg. render settings) from the Editor. Biggest issue though, is that it seems builds cannot be run locally without doing a full “app download”, which seems painful. Apps - Download app | PlayCanvas Developer Site

Is it possible to use a setup like playcanvas-sync or GitHub - querielo/playcanvas-typescript-template where it syncs to the Editor, but can also run the development environment locally (eg. as a localhost instance)?

Similarly, is it possible to automatically export from the Editor important elements like the scene hierarchy, to then import and use in a local environment?
(I see resources that accomplish this by pulling the scene hierarchy and data out of an app download, but this requires you to download everything and then manually import every downloaded element to your local environment. Ideally, you could just sync all these elements between local and the Editor. Is that supported at all?)

Thanks in advance :slight_smile:

Short answer is no, if you need a host able build, you generally have to download a build of the whole project. The suggestions are effectively having a script that downloads the build and copies what is needed to whatever folders you need.

The longer answer is that you may be able to use the Editor API to get details you want (project settings and scene hierarchy) but involve some reverse engineering of the JSON format. Editor API | PlayCanvas Developer Site

@Mark_Lundin may have more thoughts on this

1 Like