All addressable events

Is there a document with all available addressable events? I mainly want to get notified when a new build happens or an existing build get updated.

I tried using this but does not seem to get triggered when updating an existing build.

Action<AddressableAssetSettings, IDataBuilder, IDataBuilderResult> OnDataBuilderComplete

Thanks!

Hi @FlightOfOne all the events are listed on this page:
https://docs.unity3d.com/Packages/com.unity.addressables@1.19/manual/ModificationEvents.html?q=events
These are mainly events triggered when modifying the UI though, and we don’t have build events.

OnDataBuilderComplete is only triggered only when the active playmode script has changed, and you enter playmode (line 69 of AddressablesBuildScriptHooks.cs).

Is there a particular reason why you would want an event for when a build is finished? You could create a new custom build script that inherits from the default one, and after base.BuildData do any custom post-build actions.

Hello,

Thanks for the info!

I was trying to implement a moddable items system. I have other data (.json) files that gets created with metadata about the assets(mods). I load these files first, which has all the info I need about an asset without having to touch the Addressables until they are needed. I was trying to get a callback when build is modified so that the potential modder does not have to manually save it. More of a convenience for the modder that might have limited knowledge of unity/Addressables.

@FlightOfOne I see, this is an interesting use case. We are planning to add some documentation about modding in the future.

I just noticed that we do have this delegate BuildScript.buildCompleted. It gets called for builds and when entering playmode.

1 Like