- Home /
Change "profile in use" in AddressableAssetSettings from script or in cloud build config ???
Hi. I Use cloud build and cloud content delivery for my multi platform Game. So I want each cloud build configuration select special profile for its build. but there is no any setting to change that in configs?
Can we write a build preprocess function to change profile in use automatically before build?
Answer by douglassophies · Jul 02, 2021 at 09:47 AM
Answer here: https://forum.unity.com/threads/how-to-set-profile-during-build-time-programatically.674791/
AddressableAssetSettingsDefaultObject.Settings.activeProfileId = AddressableAssetSettingsDefaultObject.Settings.profileSettings.GetProfileId("production");
Your answer
![](https://koobas.hobune.stream/wayback/20220613031405im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
Preprocessor #defines and Conditional compilation in scripts 0 Answers
How to make a conditional #pragma surface noforwardadd 1 Answer
Streamed Asset Bundle Help 1 Answer
trying to wrap my head around Asset Bundles and what we can do with them 1 Answer