Search Issue Tracker
Active
Under Consideration for 2.7.X
Votes
0
Found in [Package]
2.7.3
Issue ID
ADDR-4085
Regression
Yes
"Assigned editorAsset does not match type UnityEngine.Sprite" warning when assigning a Sprite to a ScriptableObject using AssetReferenceSprite
How to reproduce:
1. Create a 2D project
2. Create a ScriptableObject Script (Create > Scripting > ScriptableObject)
3. Make a public variable for an AssetReferenceSprite in the Script
4. Create the ScriptableObject (Create > ScriptableObjects)
5. Create a 2DSprite (Project > Create > 2D > Sprites)
6. Mark the 2D Sprite Addressable in the Inspector
7. Assign the 2DSprite to the ScriptableObject
8. Observe the Console
Expected result: No warning gets thrown
Actual result: Sprite does get assigned to the property field of the ScriptableObject, but a “Assigned editorAsset does not match type UnityEngine.Sprite” warning gets thrown
Reproducible in: 1.21.8 (2023.2.0a1), 2.7.3 (2023.2.0a1, 6000.0.58f1, 6000.2.5f1, 6000.3.0b2, 6000.4.0a1 (b924bdf158e1))
Not reproducible with: 1.21.2 (2023.2.0a1)
Reproducible on: Windows 11 Pro (24H2)
Not reproducible on: No other environments tested
Notes:
- Error: Assigned editorAsset does not match type UnityEngine.Sprite. EditorAsset will be null.
- The ScriptableObject does successfully load the sprite at runtime after testing, it looks like the warning is misleading.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment