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
  • Push All Changes To Asset Layer
  • Download Required Slot Scripts
  • Download Packages for All Collections
  • Import Packages for all Collections
  1. Build an app
  2. Build With Unity
  3. Asset Layer Unity SDK

Sync Your Assets

PreviousInventory ManagerNextAsset Layer Game Server

Last updated 1 year ago

Asset Layer offers easy ways to update your assets as well as get your Asset Layer Assets into a fresh project.

Push All Changes To Asset Layer

After creating a new collection (see Create Assets in Unity) the prefab is stored in Assets/AssetLayerUnitySDK/AppAssets, with a reference saved locally in a scriptable object at Assets/AssetLayerUnitySDK/ScriptableObjects/AssetBundleDatabase.

By clicking the 'Push All Changes to Asset Layer' button in the Asset Layer Unity Editor Menu (under Update), all assets listed in the AssetBundleDatabase are checked for updates. If changes are found, the 'Upload Expression Assets' process is triggered for each asset. This feature allows for bulk updating of assets within the Assets/AssetLayerUnitySDK/AppAssets folder, streamlining the update process with a single click and saving considerable time.

Download Required Slot Scripts

Scripts are uploaded separately to Asset Layer during collection creation and are not included in Asset Bundles. To download all required scripts for your app's slots, navigate to the Asset Layer Editor Menu under Assets -> Asset Layer -> Sync -> Download Required Slot Scripts. This ensures your build supports the full functionality of all assets created for your collections. Be aware that downloading scripts submitted by third parties or for foreign slots means you might download scripts you did not author. Ensure you trust these scripts before use. Downloaded scripts are stored in Assets/AssetLayerUnitySDK/Scripts/RequiredSlotScripts.

Download Packages for All Collections

Each collection creation in Unity is accompanied by a Unity Package, allowing you to synchronize your Unity editor project with all assets from all collections created for your app. To download these packages, go to Asset Layer Unity Editor Menu -> Sync -> Download Packages for All Collections. The packages will be saved to Assets/AssetLayerUnitySDK/UnityPackages.

Import Packages for all Collections

After downloading the Unity Packages, you have two options for extraction: you can manually click on each package to extract them one by one, or you can utilize the convenience function located in the Asset Layer Unity Editor Menu under Assets -> Asset Layer -> Sync -> Import Packages for all Collections to extract all packages automatically.

Please note that the assets within these packages will retain the file structure from their original projects. To maintain a clean folder structure in your Unity project, it's beneficial to organize all related assets for a prefab into a single folder before converting it into an Asset Layer Asset. This organization aids in preserving an orderly structure when importing them via Unity Packages.