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
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
Comments (2)
-
starikcetin
Jun 09, 2023 19:49
Reproducible with 1.19.19 2021.2.15f1
-
bustedbunny2
Mar 05, 2023 17:55
Reproducible with 1.21.8 2022.2.9f
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect numbers appear when typing certain values into Focal Length field
- TMP_InputField does not trigger the "onEndEdit" event after pressing ESC when there is a ScrollBar attached to it
- Undo does not revert anchor preset changes when multiple UI elements are modified at once
- [SW-unity-6-1] The light flickers when “Alpha Blend” Overlap Operation is used
- [SW-unity-6-1] Shader warning in the Inspector when selecting ‘Shader Graphs/ShaderGraph_Water_Unlit’ Shader
Resolution Note:
Fixed in: 1.21.20