S
S
Stanislav Ivanov2021-09-22 20:40:29
C++ / C#
Stanislav Ivanov, 2021-09-22 20:40:29

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?
614b6a79d2e05902368717.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-09-22
@Sterio23400

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 question

Ask a Question

731 491 924 answers to any question