change spriterenderer to image component unity code example Example: sprite unity script Resources.Load <Sprite>