기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Cloud

Get Started

Asset Manager SDKs and services

Open Unity Dashboard

Unity Cloud

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Dashboard
  • Accounts
  • Organizations
  • Projects
  • Products
  • Billing
Developer Data
  • Introduction to the Developer Data Framework
  • Get started
  • View Diagnostics for your project
  • Privacy and consent
Unity Asset Manager
  • What's new
  • Asset Manager web
  • Asset Store
  • Manage Assets in the Editor
  • Unity Version Control
  • Developer documentation
    • Asset Manager SDKs and services
    • Integrations
      • Get started with your Asset Manager integration
      • Unity Cloud Python SDK
        • Prerequisites
        • Get started
        • Security information
        • Manage Identity
        • Manage assets
        • Manage asset versions
        • Manage datasets and files
        • Manage metadata
        • Manage collections
        • Manage transformations
        • Manage asset status
        • Manage VCS integrations
        • Open Dashboard
        • Configure Self-Hosted Deployment
        • Samples
        • Configure logs
        • Troubleshooting
      • Unity Pipeline Automation
      • Asset Manager for Unity Asset Transformer Studio
      • Asset Manager for Blender
Unity Pipeline Automation
  • About
  • Get started
  • Pipelines
  • Automations
  • Monitor jobs
  1. Unity Cloud Documentation
  2. Asset Manager
  3. Unity Cloud Python SDK

Manage datasets and files

Use the Python SDK to efficiently create, manage, download, and organize datasets and files in Unity Asset Manager.
읽는 시간 4분
최근 업데이트: 일 년 전

Before you begin

To access any datasets, make sure the app has the right accesses. Read more about managing Identity.
참고
The following code snippets first require an initialization. To learn more about the
initialize()
and
uninitialize()
methods, read about getting started with the Unity Cloud Python SDK.

How do I...?

Create a dataset

To add a dataset to an already existing asset, call
create_dataset
with the required information.
This method returns the dataset id as a string.
dataset_id = unity_cloud.assets.create_dataset( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_name = "your-new-dataset-name" )

Update a dataset

To update a dataset name, description, tags, or file order, follow these steps:
  1. Create a
    DatasetUpdate
    object.
  2. Call the
    update_dataset
    method.
dataset_update = DatasetUpdate( name = "your-dataset-name", description = "your-dataset-description", tags = ["your-tag-1", "your-tag-2", "your-tag-3"], file_order = ["your_file_1.ext", "your_file_2.ext", "your_file_3.ext"] ) unity_cloud.assets.update_dataset( dataset_update = dataset_update, org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef" )

Get a dataset

To fetch a specific dataset, call the
get_dataset
method.
dataset = unity_cloud.assets.get_dataset( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef" )

Get a list of all datasets within an asset

To fetch all datasets contained in a given asset, call the
get_dataset_list
method.
datasets = unity_cloud.assets.get_dataset_list( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef" )

Upload a local file to a dataset

To add a file to any dataset contained in your asset, follow these steps:
  1. Create an
    AssetFileUploadInformation
    object.
  2. Call the
    upload_file
    method.
  3. (Optional) Pass the
    upload_file
    method to track the progress via callback.
참고
The
AssetFileUploadInformation.UploadFilePath
field stores the location of the file you want to upload. The
AssetFileUploadInformation.CloudFilePath
field stores the desired file path of the file on the Asset Manager and should be passed as
PurePosixPath
.
from pathlib import PurePath, PurePosixPath def show_upload_progress(progress): print(progress) upload_asset = FileUploadInformation( organization_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", upload_file_path = PurePath("computer/path/to/file.ext"), cloud_file_path = PurePosixPath("path/to/file.ext") ) unity_cloud.assets.upload_file( asset_upload_information = upload_asset, progress_callback = show_progress )

Update a file's metadata

To update the description and the tags of a file, follow these steps:
  1. Create an
    AssetFileUpdate
    object.
  2. Call the
    update_file
    method.
The
file_path
argument in the
update_file
method must correspond with the cloud file path used when uploading the file.
from pathlib import PurePosixPath asset_file_update = FileUpdate( description = "your-file-description", tags = ["your-tag-1", "your-tag-2", "your-tag-3"] ) unity_cloud.assets.update_file( asset_file_update = asset_file_update, org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", cloud_file_path = PurePosixPath("path/to/file.ext") )

Download a file contained in a dataset

To download a file, follow these steps:
  1. Create an
    AssetFileDownloadInformation
    object with
    FilePath
    .
    FilePath
    indicates the file the path in Asset Manager and
    DownloadFolderPath
    indicates the destination for the downloaded on your computer.
  2. Call the
    download_file
    method.
  3. (Optional) Pass the
    download_file
    method to track the progress via callback.
def show_download_progress(progress): print(progress) asset_file_download_infos = FileDownloadInformation( organization_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", cloud_file_path = PurePosixPath("path/to/file.ext"), download_folder_path = PurePath("path/to/folder") ) unity_cloud.assets.download_file( asset_download_information = asset_file_download_infos, progress_callback = show_download_progress )

Get a file

To fetch a specific file, call
get_file
.
files = unity_cloud.assets.get_file_list( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", cloud_file_path = PurePosixPath("path/to/file.ext") )

Get a list of all files within a dataset

To fetch all files contained in a given dataset, call
get_file_list
.
files = unity_cloud.assets.get_file_list( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef" )

Remove a file from a dataset

To remove a file from a dataset, call
unity_cloud.assets.remove_file
.
from pathlib import PurePosixPath unity_cloud.assets.remove_file( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", file_path = PurePosixPath("path/to/file.ext") )

Get a list of suggested generated tags for a picture file

To get a list of suggested tags for a picture file, call
get_suggested_tags
. They are generated based on the content of the image.
suggested_tags = unity_cloud.assets.generate_suggested_file_tags( org_id = "012345678912", project_id = "1234abcd-ab12-cd34-ef56-123456abcdef", asset_id = "0123456789abcdefghijklmn", asset_version = "1234abcd-ab12-cd34-ef56-123456abcdef", dataset_id = "1234abcd-12ab-34cd-56ef-123456abcdef", file_path = PurePosixPath("path/to/file.ext") )

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Before you begin

    • How do I...?

      • Create a dataset

      • Update a dataset

      • Get a dataset

      • Get a list of all datasets within an asset

      • Upload a local file to a dataset

      • Update a file's metadata

      • Download a file contained in a dataset

      • Get a file

      • Get a list of all files within a dataset

      • Remove a file from a dataset

      • Get a list of suggested generated tags for a picture file


이 페이지의 문제 보고