Search Issue Tracker

Fixed

Fixed in 2.0.8

Votes

7

Found in [Package]

2.0.3

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

  1. Resolution Note:

    Fixed in: 1.21.20

Comments (2)

  1. starikcetin

    Jun 09, 2023 19:49

    Reproducible with 1.19.19 2021.2.15f1

  2. bustedbunny2

    Mar 05, 2023 17:55

    Reproducible with 1.21.8 2022.2.9f

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.