Search Issue Tracker

Active

Votes

0

Found in [Package]

1.20.3

1.20.5

Issue ID

ADDR-2991

Regression

No

Error claims issue with type when trying to load an Asset that is not marked as addressable via its GUID

Package: Addressables

-

Reproduction steps:
1. Open the user’s attached project “addressables bug”
2. Open “SampleScene” from the Project window
3. Enter Play mode

Expected result: The error message in the Console reports an issue with the Asset not being marked as addressable
Actual result: The error claims that the problem is with the type:
UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. Could not load Asset with GUID=0f9341f1e1dd6d341bbbea2a7b34ea0b, Path=Assets/pika.png. Asset exists with main Type=UnityEngine.Texture2D, which is not assignable from the requested Type=UnityEngine.Texture2D

Reproducible with: 1.20.3 (2020.3.40f1, 2021.3.11f1), 1.20.5 (2022.1.18f1, 2022.2.0b9, 2023.1.0a12)

Reproducible on: macOS 12.4 (Intel)

Note: When Assets/pika.png is marked as addressable the error no longer appears

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.