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
  1. Details
  2. Expression Types

Unity

The Unity expression type contains six expression attributes - five AssetBundle files and one UnityPackage file. The AssetBundle files are used to load the asset into Unity scenes at run time. Each of the five AssetBundle files is optimized for a specific platform - WebGL, iOS, Android, MacOS, and Windows. The UnityPackage is used to load the asset into the Unity editor for inspection and editing.

AssetBundle Details

In Unity, an AssetBundle is a collection of assets from your project that can be loaded at runtime. Almost any type of asset used in a Unity project can be included in an AssetBundle. This includes:

  1. 3D Models: All types of 3D models, including their meshes and textures.

  2. Textures and Materials: Images used for texturing objects, along with materials that define the surface appearance of 3D models.

  3. Animations: Character animations or any other type of animations.

  4. Audio Files: Sound effects, music, and any other audio assets.

  5. 2D Sprites: Including characters, backgrounds, UI elements, and any other 2D artwork.

  6. Scripts: While scripts themselves aren't directly included, compiled script objects used in the scene can be part of an AssetBundle.

  7. Prefabs: Pre-constructed game objects with their components and properties set up.

  8. Scenes: Entire Unity scenes can be packed into an AssetBundle.

  9. UI Elements: UI assets like sprites, fonts, and other elements used in canvas.

  10. Particle Effects: Custom particle systems and their associated assets.

  11. Shader and Text Assets: Custom shaders and text files, including JSON or XML data.

Asset Layer uses AssetBundles because they are particularly useful for managing and optimizing resource loading into a game, especially for large projects or games requiring dynamic content loading. They allow you to reduce the initial download size of your game by loading assets on demand rather than bundling everything with the main game package.

Expression Attributes

AssetBundleiOS: AssetBundle exported for iOS

AssetBundleAndroid: AssetBundle exported for Android

AssetBundleStandaloneWindows: AssetBundle exported for Windows

AssetBundleOSX: AssetBundle exported for OSX

AssetBundleWebGL: AssetBundle exported for WebGL

UnityPackage: Unity package file used to import the prefab and associated files into Unity Editor

Supported file types: .assetbundle .unitypackage

PreviousVideoNextSpine 4.0 (2D Animated Characters)

Last updated 1 year ago