I have a project with many scenes that I need to download seperately for our client. Right now we exclude the models for each scene by hand to keep the file size small (unfortunately its only one model).
Is there a way to set the “exclude” status of an asset via the API? Then I could download all scene via script.
Unfortunately not. The two ways that come to mind would be to either:
- Tag assets that should be excluded in the build and use a post build script that parses the config.json file in the build for the assets and remove both entry in the JSON and the file in the assets folder
- Tag assets that should be excluded in the build and use the Editor API (https://github.com/playcanvas/editor-api) to exclude from the build via the Assets API that you can run before you do a build and then undo when you are back in development
Thanks for your reply. This works very well and fits my use case. I use a post build script to remove the assets after downloading all scenes.