Sprite2D.texture = item.texture @export var texture:Texture
Invalid set index 'texture' (on base: 'Sprite2D') with value of type 'CompressedTexture2D'.
CompressedTexture2D应该是texture的子类,为什么进行赋值会报这种错?
Invalid set index 'texture' (on base: 'Sprite2D') with value of type 'CompressedTexture2D'.
CompressedTexture2D应该是texture的子类,为什么进行赋值会报这种错?