Z
Z
Zimaell2020-12-03 14:04:51
Unity
Zimaell, 2020-12-03 14:04:51

How to download a sprite?

I need to load a specific sprite into an object

public Sprite sprite1;
void Start(){
  sprite1 = Resources.Load<Sprite>("Images/BlockFrame/BlockBlack_01.png");

This image is located along the path Assets/MyProject/Resources/Images/BlockFrame/BlockBlack_01.png
but at startup I see that sprite1 is equal to none...
Did I specify the path incorrectly or what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-12-03
@Zimaell

Without.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question