Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.74 KB

File metadata and controls

58 lines (39 loc) · 2.74 KB

Bulk download script

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!

Table of contents

Prerequisites

System requirements

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.

Licenses

The bulk download sample script is made available under the Unity ToS license.

How do I run the sample ?

To run the sample, follow these steps:

1. Edit the bulk_download.py script with your requirements

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.

2. Run the script

With you favorite command line tool, run python bulk_download.py in this folder.

See also

Tell us what you think!

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!