The sample script demonstrates how to use Python SDK to download assets from Unity Cloud Asset Manager.
To connect and find support, join the Help & Support page!
To run the script, you need:
- Python installed on your machine
- An up-to-date Python SDK wheel installed ( > 0.5.0).
- The right permissions to use Asset Manager. See Get Started with Asset Manager for more details.
- A source project with assets manager enable and assets already uploaded in it.
The bulk download sample script is made available under the Unity ToS license.
To run the sample, follow these steps:
In the main
conditional section, you must edit some information to link the sample to your project.
- org_id: Your organization id.
- project_id: Your project id.
- download_directory: must be edited with the path where the assets will be downloaded.
- overwrite: When set to
True
, the script will overwrite the files in the download directory if they already exist. Otherwise, it will skip the download. - include_filter/exclude_filter/any_filter: This dictionary contains the search criteria to fetch the assets. Some example are written in comments, otherwise please refer to the Python SDK documentation to learn how to use search criteria.
- collections: This list contains the collections to fetch the assets from. Leave it empty to search through all the assets in the project.
With you favorite command line tool, run python bulk_download.py
in this folder.
Thank you for taking a look at the project! To help us improve and provide greater value, please consider providing feedback in our Help & Support page. Thank you!