docs.unity3d.com
    Show / Hide Table of Contents

    Use case | Access scenes

    This use case outlines how to set up your project to access scenes.

    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.

    Access scenes

    1. In your Unity project window, go to Assets > Scripts.
    2. Right-click the Assets/Scripts folder.
    3. Select Create > C# Script.
    4. Name your script ScenesExamples.
    5. Update the ScenesExamples class to look like the following:
    6. Replace RunExamples() method in your StorageBehaviour class with following code:
    7. Paste the name of a workspace that contains scenes into the string named k_WorkspaceName. If you don't know the workspace name, try to use your organization name.

    Note: You can find your organization name in the Unity Cloud Portal. Refer to Get started.

    Run examples

    1. In the Unity Editor, select Play.
    2. Check your console to confirm that you have successfully requested and listed available scenes from the specified workspace.
    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