Building assets from script

I am using 0.4.8-preview and I am trying to add the building of addressable assets in my build procedures. BuildScript.PrepareRuntimeData doesn’t seem to exist anymore. What’s the new way to do it?

Thanks.

1 Like

This should work for now:
var context = new AddressablesBuildDataBuilderContext(AddressableAssetSettingsDefaultObject.Settings);
AddressableAssetSettingsDefaultObject.Settings.ActivePlayerDataBuilder.BuildData(context);

In the next release, we have wrapped up this functionality into static helper methods to make calling from script easier. It will be this:

AddressableAssetSettingsDefaultObject.Settings.BuildPlayerContent();

1 Like