< Back to downloads

Custom action for Addressables and Unity Visual Scripting (ex-Bolt)

Unity package
BGDatabase, Addressables, Visual Scripting or Bolt
Platform Download
UnityVisualScripting link
Bolt version = 1.4.15 link
Bolt version < 1.4.15 link


Custom units for Unity Visual Scripting (or Bolt) to load assets from Unity Addressables system

There are 2 different methods for loading assets

  1. By using BGAddressablesGetAsset unit (suitable for loading a single asset)
  2. By using events (suitable for loading multiple assets at once)

Method #1 setup:

Custom action (BGAddressablesGetAsset under BansheeGz category) for Bolt. Loading is asynchronous and may take several frames to load an asset. This method is not suitable for loading multiple assets at once

  1. Unit requires a Unity Event to be called in coroutine mode. Make sure Unity event has "Coroutine" toggle on
  2. Add BGAddressablesGetAsset unit. Assign correct meta name, field name and pass correct entity identifier (Index, ID or name). The call may take several frames to load an asset, cause loading is asynchronous
  3. Use "exit" out control to read the asset.
  4. Use "exitNoWait" out control to continue execution without waiting until asset is loaded (note, the asset is available only after exit control is executed)

Method #2 setup:

This method is suitable for loading multiple assets at once. Loading is split into 2 phases:

  1. Requesting an asset loading (using BansheeGz/BGAddressablesGetAssetViaEvent unit)
  2. Once the asset is loaded, an event is fired (Events/BansheeGz/BGAssetLoadedEvent) with the asset as an argument. Additional information is also provided so the origin of the asset can be identified (table, field, entity, optional eventData object)


Click to see all releases
Version Release date Log
1.2 Nov 27, 2020 Added additional method of loading assets (via events)
1.1 Oct 18, 2020 "exitNoWait" output control is added to allow to continue control flow without waiting
1.0 Sep 16, 2020 Versioning reset (unified plugin infrastructure)
0.1.1 July 14, 2020 Make use of addressables cache to improve loading assets if unit is called more than once
0.1.0 June 19, 2020 Initial release