How to reference a sprite in the Assets/Masks/Zombies folder to change a image based on that sprites name via code
For example I have multiple sprites in my Assets > Masks > Zombies.
I want to reference Zombie_Crawler and replace an image in my GameScene called Zombie_Icon which is under Canvas_Stats.
I am somewhat new to programming so if anyone can lead me in the right direction that would be great!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612034332im_/https://answers.unity.com/themes/thub/images/avi.jpg)