Skip to content

Odaimoko/Addressables-Hotfix-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Addressables Hotfix Tutorial

A step-by-step guide on how to hotfix using Unity's Addressables system. Tested on Mac and Android.

This serves as an intermediate level resource. You will need at least to know how to load resources using Addressables inside a local build.

I will show you the minimalistic examples for you to build upon, perfectly in the network of your company or your home. I'm not gonna talk about how to host your build output on some server.

Tutorial Content

Part 1: Introduction

Part 2: Best Practice

The Scene

img.png

  • (1) Basic Addressables paths. The screenshot shows the paths in Unity Editor on MacOS system.
  • (2) and (3) are Texts to indicate some Asset Bundles have been changed. The button LoadLatest fetches the data from the latest bundle and release the handle immediately after.
  • (4) and (5) loads images and display them. (4) only shows images from LocalStatic group, while (5) shows images dynamically loaded from several Remote* groups.
  • (6) checks if the catalog needs update. If so, (7) will show up which downloads the catalog and the associated bundles.
  • (8) clears all the cached bundles, but preserve the latest catalog. It frees up user spaces. A user needs to redownload the bundle after clearance.
  • (9) logs some other info to Unity Console.

About

A step-by-step guide on how to hotfix using Unity's Addressables system. Tested on Mac and Android.

Topics

Resources

License

Stars

Watchers

Forks

Languages