Asset Layer Docs
Asset LayerAPI Docs
  • 👋Welcome
  • Getting Started
    • Quick Start
      • Quick Start for Developers
      • Quick Start for Creators
      • Quick Start for Unity
    • Core Concepts
      • Users
      • Auth + Permissions
      • Teams
      • Apps
      • Slots
      • Expressions
      • Assets + Collections
      • Currencies
      • Marketplace and Shops
      • Core Concepts in Action
    • SDK Docs
      • Setup
      • Users
        • getUser()
      • Apps
        • info()
        • getApp()
        • getApps()
        • slots()
        • getAppSlots()
        • getAppSlotIds()
      • Slots
        • getSlot()
        • collections()
        • getSlotCollections()
        • getSlotCollectionIds()
        • getSlotExpressions()
        • createExpression()
        • updateExpression()
        • getExpressionTypes()
      • Collections
        • info()
        • getCollection()
        • getCollections()
        • assets()
        • getCollectionAssets()
        • getCollectionAssetIds()
        • createCollection()
        • updateCollection()
        • updateCollectionImage()
        • activateCollection()
        • deactivateCollection()
      • Assets
        • info()
        • getAsset()
        • getAssets()
        • user()
        • getUserAssets()
        • getUserAssetIds()
        • getUserAssetCounts()
        • getUserCollectionAssets()
        • getUserCollectionsAssets()
        • getUserSlotAssets()
        • getUserSlotsAssets()
        • mintAssets()
        • send()
        • sendAsset()
        • sendAssets()
        • sendCollectionAssets()
        • sendLowestAsset()
        • sendRandomAsset()
        • update()
        • updateAsset()
        • updateAssets()
        • updateCollectionAssets()
        • expressionValues()
        • updateAssetExpressionValue()
        • updateAssetsExpressionValue()
        • updateCollectionAssetsExpressionValue()
        • updateBulkExpressionValues()
      • Equips
        • getEquips()
        • setEquip()
        • removeEquip()
      • Currencies
        • info()
        • getCurrency()
        • balance()
        • getCurrencyBalance()
        • getCurrencySummary()
        • increaseCurrencyBalance()
        • decreaseCurrencyBalance()
        • transferCurrency()
      • Listings
        • getListing()
        • user()
        • getUserListings()
        • getUserListingsCounts()
        • getUserCollectionListings()
        • getUserCollectionListingsCounts()
        • getUserSales()
        • getUserSalesCounts()
        • getUserPurchases()
        • getUserPurchasesCounts()
        • collection()
        • getCollectionListings()
        • getCollectionsListings()
        • getCollectionListingsCounts()
        • getCollectionsListingsCounts()
        • getCollectionListingsStats()
        • getCollectionsListingsStats()
        • app()
        • getAppListings()
        • getAppListingsCounts()
        • getAppListingsStats()
        • new()
        • listAsset()
        • listAssets()
        • listCollectionAssets()
        • updateListing()
        • buyListing()
        • removeListing()
      • Shop
        • buyItem()
        • summary()
      • Core Types
        • User
        • App
        • Slot
        • Expression
        • Collection
        • Asset
        • Equip
        • Currency
        • Listing
        • Shop
        • Basic
      • SDK Repo
      • C# SDK for Unity
    • Guides
      • How to Integrate Asset Layer into your Unity Game
    • API Docs
    • Asset Layer GPT
  • Build an app
    • App Setup
      • Creating an App
      • Managing Apps
      • App Info
      • Manage Permissions
      • Manage Slots
      • Manage Collections
      • Manage Currencies
      • App Settings
    • App Development
    • Build With Unity
      • Unity App Setup
      • Advanced Unity Setup
        • WebGL App Setup
      • Asset Layer Unity SDK
        • Login + Authentication
        • Create Assets in Unity
        • Import Assets Into Your Scene
        • Inventory Manager
        • Sync Your Assets
        • Asset Layer Game Server
        • C# SDK
    • Sample App
      • Getting Started With Sample App Locally
      • Environment Variables
      • API Routes
      • Deployment
      • Default Pages
      • Deploying Your Unity WebGL Game Through Sample App
  • Create and Manage Assets
    • Create Assets With Code
    • Create Assets Without Code
      • Create Assets for My App
      • Submit a Collection for a 3rd Party App
      • Create an Independent Collection - Coming Soon!
    • Create Assets in Unity
    • Managing Collections from 3rd Party Creators
  • Manage Assets
    • My Assets
      • Listing Assets for Sale
      • Sending Assets as a Gift
      • My Listings
      • Marketplace History
    • Marketplace
  • Settings
    • Team Settings
    • Account Settings
    • Pricing
  • Details
    • Expression Types
      • Image
      • Audio
      • Video
      • Unity
      • Spine 4.0 (2D Animated Characters)
      • Additional Expression Types
Powered by GitBook
On this page
  • Create Your Asset Layer App
  • Install the Asset Layer Unity Package
  • Connect Your Asset Layer App to your Unity Project
  • Import Essentials
  • Next Steps
  1. Build an app
  2. Build With Unity

Unity App Setup

PreviousBuild With UnityNextAdvanced Unity Setup

Last updated 1 year ago

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.

Create Your Asset Layer App

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.

To fully set up your Asset Layer app, we recommend following the complete App Setup guide.

Install the Asset Layer Unity Package

You 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, . 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.

Connect Your Asset Layer App to your Unity Project

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.

Import Essentials

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.

Next Steps

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
Creating an App
App Setup
https://github.com/unbounded-enterprise/asset-layer-sdk-unity.git