The method AddressableProfileSettings.GetValueByName() no longer returns the value in Addressables 1.19.4. This used to work in 1.18.15 and earlier versions.
Reproduce
Open attached project
Update Addressables to 1.19.4
Click from main menu “BugReport > Print paths”
Actual
The Debug.Log’s show the empty paths.
Expected
The Debug.Log’s show the paths of the Profile Settings found under “Window > Asset Management > Addressables > Profiles”.
Thanks Peter for the great bug report.
I had a look at this and its a tricky situation.
The setup string for the AddressableAssetSettings.kLocalLoadPath name was changed, from LocalLoadPath to Local.LoadPath. When adding paired build/load groupings. Though changing this was not ideal, it does also mean undo’ing it is also not ideal.
There will be two ways to adjust for this. 1, change your variables, creating a “Build and Load Path” variables for Local and Remote, with prefix name being Local or Remote and set your old Groups to use that. 2, instead of using kLocalLoadPath use “LocalLoadPath” instead.
Thanks for your comment @andymilsom , I’m not sure I understand you suggested way #2 (there is only
AddressableAssetSettings.kLocalLoadPath which as you said was changed to “Local.LoadPath”). Solution #1 worked for us though by changing the now outdated entries in AddressableAssetSettings.asset (not sure how else your are suggesting to create variables)
Thats great you got a solution, sorry for the inconvenience on this.
not sure how else your are suggesting to create variables
You can create paired build/load paths, or individual variables. Though if you have existing variables just renaming them with the “.” after local probably makes most sense.