docs.unity3d.com
    Show / Hide Table of Contents

    Use case | Manage datasets

    This use case outlines how to set up your project to access and manage datasets.

    Prerequisites

    To accomplish this use case, you need to set up a Unity scene, create CloudWorkspaceRepository and StorageBehaviour as described in Use case | Manage workspaces.

    Manage datasets

    Create DatasetExamples script

    1. In your Unity project window, go to Assets > Scripts.
    2. Right-click the Assets/Scripts folder and go to Create > C# Script. Name your script DatasetExamples.
    3. Update the DatasetExamples class to look like the following:

    Add "Create dataset" example

    To add Create dataset example, add following code to your DatasetExamples class:

    Add "List datasets" example

    To add List datasets example, add following code to your DatasetExamples class:

    Add "Delete dataset" example

    To add Delete dataset example, add following code to your DatasetExamples class:

    Add "Dataset metadata" example

    To add Dataset metadata example, add following code to your DatasetExamples class:

    Run examples

    1. Replace RunDatasetsExamples() method in your DatasetExamples class with following code:

    2. Replace RunExamples() method in your StorageBehaviour class with following code:

    3. In Unity Editor, click Play button.

    4. Check your console to confirm that you have successfully created, listed, and deleted datasets as well as added, changed, and deleted metadata:
      Screenshot of the console after the datasets examples run

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023