Asset Bundles for Unity

An AssetBundle is content that is stored separately from a main game or application and loaded/downloaded at runtime. This helps minimize the impact on network and system resources, allowing customers to download and install only the parts they need. AssetBundles can also be used to update or add content post-release.

to create them in Unity we must use an editor script that creates a new command. To do this we create a folder Editor and inside it, a script called CreateAssetBundle and insert the code that I leave below.

before experimenting with the new key we must go to create our AssetBundle we select the object we want to use, in my case the prefab of a GameObject.

at the bottom right we can see the writing AssetBundle to create a new one just select it and choose new to create a new one and assign a name.

Finally, we should go to try the new editor command created. The command at the end of its correct execution will create a folder with the file to upload online and recall when the time is right.

To better understand the use I refer you to the guide of Unity Learn

project manager by day, unity developer by night

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Load files faster into BigQuery

NOSQL Database Introduction

Web Scraping the List of Greatest Video Games from Wikipedia

Things, I care about when using Cassandra !!

Confluent Platform Deployment  using Ansible Playbook

Ruby on Rails Reference — CLI Commands, Bundler, Macros

Walkthrough of lil-voting

Convert torchvision image classification model to CoreML

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrea Alicino

Andrea Alicino

project manager by day, unity developer by night

More from Medium

Ledge Grab System Part III

The new Input System: Create your first input asset

Galaxy Shooter — Prototype to Production

Unity Observers