- Home /
Change Build and Load Paths in an addressable group
I want to create a build script which will have three build options for app and addressables
Build addressables to a remote path, upload them to a server, and build the app
Build addressables to a local path and build the app
Build the app without building the addressables
I couldn't figure out how to change the Build Path and the Load Path in an addressable group from a script. Anyone knows how to do it?
Answer by noobogami · Sep 07, 2021 at 10:04 AM
maybe it's too late but in case of you're still looking for it or anyone else seeing this post you can change group setting by getting group from AddressableAssetSettingsDefaultObject and getting intended scheme:
var group = AddressableAssetSettingsDefaultObject.Settings.FindGroup("groupName");
group.GetSchema<BundledAssetGroupSchema>().BuildPath.SetVariableByName(AddressableAssetSettingsDefaultObject.Settings, "MyBuildPath");
you can see this post here for more information: "Is there way to access existing addressable asset setting?"
Thank you! I couldn't find a way, and gave up on the issue. But I will try this out, and let you know how it goes :)