1.18->1.19 update required code changes due to missing variables.

This had prevented me from updating Addressables to the latest version until I figured it out - it should have been obvious but since my build process is automated I didn’t see (or expect) any exceptions until trying to create a repro… it just wasn’t working anymore unless I would downgrade. So I’m sharing what it was, for anyone else that hits the same problem.

Updating the engine to version 2022 auto-updates Addressables to 1.19. For whatever reason, the “kRemoteBuildPath” and/or “kRemoteLoadPath” variables for group settings are somehow lost in the process, so calls to group.Settings.profileSettings.SetValue(AddressableAssetSettings.[variable] stopped working. The exception was saying I had to create them first.

The solution was to add a call to .CreateValue before calling SetValue.

They changed it in 1.19.4 and the change wasn’t backwards compatible and now they can’t go or don’t want to go back anymore: https://discussions.unity.com/t/855367