For example, make the directory named “Title” addressable.
Then place the TitleRootLayer.prefab under the Title directory.
To load the TitleRootLayer.prefab, you would specify “Title/TitleRootLayer.prefab” as the argument to LoadAssetAsync.
If your PlayModelScript is “FastesMode”, I believe “AddressableAssetSettingsLocator” will be called to do the path resolution, but the path returned by the internal “GetInternalIdFromFolderEntry” is wrong.
As you can see in the screenshot, it replaces all the “Title” in “Title/TitleRootLayer.prefab”.
I think only the “Title/” at the beginning of “Title/TitleRootLayer.prefab” should be replaced.
Is your TitleRootLayer.prefab or the Title folder marked as Addressable in the Addressable Groups Window? If so what are the addresses shown in the Groups window?
Having the same issue trying to load an asset that is addressable via a folder marked as addressable. The issue only happens in the ‘Use Asset Database’ mode and was introduced in 1.16.1. In my case, loading “Languages/English.csv” fails with an InvalidKeyException (group layout attached). For these particular loads, in the editor I manually load via the asset database, instead.
I just tested this in a really basic repro project using 1.16.15 and it worked for me. You might try updating to that version as something might have changed with fast mode loading.
Another thing I’d be sure to double check is the type you pass in. @hirokazu_unity202 yours looks fine because you’re saying Load and trying to reference a prefab. But for @joe_nk double check you have the correct type for a csv. If the type and key don’t match something you’ll get an invalid key exception.
If upgrading still doesn’t work I’ll need to get your project to test the repro. If upgrading doesn’t work please file a bug with the official Unity bug reporter tool.
I updated to 1.16.15 and had the same problem.
I created a minimal project to check it, but it did not work.
As advised, I have reported the bug in a bug report.