Unity App Setup
Last updated
Last updated
This guide will walk you through creating your Asset Layer app, installing the Asset Layer Unity package, and then connecting your Asset Layer app to your Unity project.
In order to use Asset Layer in your Unity project, you will first need to have an Asset Layer app. This app will be the home of the assets you create using Asset Layer.
To create an Asset Layer app, follow this guide.
Creating an AppTo fully set up your Asset Layer app, we recommend following the complete App Setup guide.
App SetupYou can install the Asset Layer Unity Package using the Unity Package manager. You can find the package manager in the Window menu in the navbar. To add a package from a GitHub link, click the + button and select "Install Package from Git URL...". The GitHub link for Asset Layer is, https://github.com/unbounded-enterprise/asset-layer-sdk-unity.git. After adding Asset Layer to your package manager, you should see something like this.
Please note, we recommend using version Unity editor version 2022 LTS or later for the best experience. 2021 LTS will only provide the basic features.
Now that you've created your Asset Layer app and installed Asset Layer into your Unity project, you are ready to link your Asset Layer app to your Unity project. Open your Unity project settings which can be found in the Edit menu. You will see a tab, "Asset Layer App Settings". Here, you can enter five values related to your app. You will need to enter the App ID, DID Token, and App Secret to get started. These can be found in the App Info section of your dashboard.
App ID: This is your Asset Layer app's App ID which can be found in the App Info tab in the dashboard. Proxy Server URL: This is the URL where your game server is hosted. For more information, check out Asset Layer Game Server. You will not need to set up your game server to begin work in the editor.
Login URL: This is used for login from Desktop. Check out Login + Authentication for more details. You will not need to set up a Login URL to begin work in the editor.
DID Token: A DID Token allows you to play as a specific user in the context of the editor. You can get a DID token for your user account through the App Info tab in the dashboard.
App Secret: This is your Asset Layer app's App Secret which can be found in the App Info tab in the dashboard.
After successfully installing the Asset Layer Unity Package, you gain access to the Asset Layer Editor Menu, accessible via the Assets tab. We recommend initiating your integration by importing the Asset Layer Essentials into your project's /Assets directory. This action creates a subfolder named AssetLayerUnitySDK within your Assets folder, housing essential Asset Layer Prefabs. These prefabs facilitate seamless integration into your Unity project, alongside tutorial files to guide you through the process.
You are now ready to get creating new assets for your app directly from Unity and integrating Asset Layer into your Unity project!
We'd recommend checking out the Asset Layer Unity Package overview to learn more about how to use Asset Layer to power your Unity game.
Asset Layer Unity SDK