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
- In your Unity project window, go to Assets > Scripts.
- Right-click the
Assets/Scriptsfolder. - Select Create > C# Script.
- Name your script
ScenesExamples. - Update the
ScenesExamplesclass to look like the following: - Replace
RunExamples()method in yourStorageBehaviourclass with following code: - Paste the name of a workspace that contains scenes into the
stringnamedk_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
- In the Unity Editor, select Play.
- Check your console to confirm that you have successfully requested and listed available scenes from the specified workspace.