Answer the question
In order to leave comments, you need to log in
How to refer to an image in a project?
Good afternoon, in the project I created a separate folder for images and actually added the image itself (Picture.png) there. Question - how can I refer to this image in the code or did I do something wrong?
Answer the question
In order to leave comments, you need to log in
RMB -> Properties -> Copy on build (I don't remember exactly what this item is called in the studio).
Then you can then write File.ReadAllBytes("Images/Picture.png") from the code and the file will be read.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question