Hi there, I want to load a Sprite, that I imported to my project, and replace another Sprite in my SpriteRenderer with it. So I load my Sprite: spriteX = Resources.Load<UnityEngine.Sprite>("Sprites/xmark"); And I want to place another Sprite with it: clickedField.GetComponent <SpriteRenderer>().sprite = spriteX; But I'll just get "None" in my SpriteRenderer. My file "xmark.png" is in my created folder "Sprites". Any clues on what I am doing wrong?
Hi The Resources.Load() will first look for assets to load from all folders with the name "Resources" under your project folder. In your case, you need to place them under Assets - Resources - Sprite - xmark.png
Okay I got it now. I created a new Folder Resources, put my Sprites Folder into it and thats it. Thanks for your help!