I\'m trying to create an object that will be responsible of creating and showing different sprites, so I would like to access directly the assets/sprites programmatically instea
Just to throw my tuppence worth in. I had this problem when I changed a SerializedField from Texture2D to Sprite in the code. The texture was already a sprite in the editor but it needed to be Sprite in the code. The field in the editor initially said type mismatch and then displayed the sprite texture again. To cure it I set the field in the editor to none and the reset it to the required sprite.