Loading a sprite from resource folder

Hi all, from learning from below video i got stuck while adding sprites (at 15:30):

When i try to include sprites (using set get and Resources.load) sprite won’t show up. While debugging it show null.
here’s the code:
alt text

Yes, this is because a file can’t be a sprite. It can be an image, which can contain one or more sprites.

If I recall correctly, you need to use Resources.LoadAll to get all sprites for that image, then filter out the one you want from the returned collection.

Do you have a Resource folder inside Assets folder with a folder called Sprites?
And the “slug” string parameter get an avaliable image name?

Sorry, so much folders xd