Hi there,
How can I build addressable bundles fỏ content update using cli?
Also, I couldn’t see StaticContent tick box anymore
Hi there,
How can I build addressable bundles fỏ content update using cli?
Also, I couldn’t see StaticContent tick box anymore
I found some code for that in the Editor:
var modifiedEntries = ContentUpdateScript.GatherModifiedEntries(AddressableAssetSettingsDefaultObject.Settings, buildPath);
ContentUpdateScript.CreateContentUpdateGroup(AddressableAssetSettingsDefaultObject.Settings, modifiedEntries, "Content Update");
AddressableAssetSettings.BuildPlayerContent();
public static void ShellBuild(string profile ="Default")
{
var aaSettings = AddressableAssetSettingsDefaultObject.Settings;
if (aaSettings != null && aaSettings.BuildRemoteCatalog)
{
var id = aaSettings.profileSettings.GetProfileId(profile);
aaSettings.activeProfileId = id;
string path = ContentUpdateScript.GetContentStateDataPath(false);
if (File.Exists(path))
{
ContentUpdateScript.BuildContentUpdate(AddressableAssetSettingsDefaultObject.Settings, path);
}
else
{
AddressableAssetSettings.BuildPlayerContent();
}
}
else
{
AddressableAssetSettings.BuildPlayerContent();
}
}
Awesome. Thank you!
I was expecting to see a commandline argument, like “unity.exe -buildAddressableAssets”, how does one use this script? Is there a way to truely do it via the commandline?