Description
Minimalistic example project to help you to start using Unity's Addressables system with BGDatabase quickly. It requires BGDatabase version >= 1.6.6 and Addressables version >= 1.17.17. The project does not include the code for releasing prefabs/instances.
Setup:
- Download this project, unzip it and open it with Unity > 2019 LTS. Ignore console errors.
- Import BGDatabase package
- If you use Unity >= 2022, you may see compilation errors in the console. Import "Unity UI" package using Unity package manager
- Run scene.unity scene to test reading assets from Addressables. More info about this technique.
- [Optional] If you want to build the project to other platforms, make sure to rebuild Addressables after switching platform (Window -> Asset Management -> Addressables -> Groups, Build->New Build->Default Build Script )
Used techniques:
Spawner script (Assets\AddressablesQuickStart\Spawner.cs) uses the following techniques to load prefabs from Addressables:
- Using Load{FieldName}Async to load asset asynchronously
- Using generated property (f_addressable) for loading asset synchronously (Addressables v. 1.17.17 added support for sync loading)
- Using GetAddressablesAddress method to use raw addressables address with Addressables
Releases
Click to see all releases
Version | Release date | Log |
---|---|---|
1.3 | April 25, 2021 |
|
1.2 | March 06, 2020 | Update for Addressables plugin v.0.1.2 |
1.1 | September 20, 2019 | Update for Addressables plugin v.0.1.1 |
1.0 | January 09, 2019 | Initial release |