Unity-Technologies / com.unity.services.samples.use-cases

The collection of samples in this repo use Unity Gaming Services in a Unity project to demonstrate live gaming operations.
Other
456 stars 112 forks source link

Addressable Asset Loading in Seasonal Events Use Case #13

Closed Mchapuis closed 1 year ago

Mchapuis commented 1 year ago

I'm encountering an issue with the Addressable Assets system within the Seasonal Events use case in Unity. I'm facing an InvalidKeyException when attempting to load assets using specific keys, potentially linked to remote asset path changes managed by Unity.

This issue is specific to the Seasonal Events use case. Other projects using Unity's gaming service have successfully worked, indicating that the issue might be related to asset path changes or configurations within the Seasonal Events context.

Loading assets using LoadAssetsAsyncwith specific keys throws an InvalidKeyException Specifically from:

Sprites/BackgroundImage Prefabs/PlayButton Prefabs/PlayChallengeButton

UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Intersection of Assets between Keys=event key, Sprites/BackgroundImage with Type=UnityEngine.Sprite
No Location found for Key=event key

UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Intersection of Assets between Keys=event key, Prefabs/PlayButton with Type=UnityEngine.GameObject
No Location found for Key=event key

UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Intersection of Assets between Keys=event key, Prefabs/PlayChallengeButton with Type=UnityEngine.GameObject
No Location found for Key=event key