✅ Load Images from project folder

So usually if i want to load an image (lets say its located in /Assets/someSprite.png from the current relative path to the Executable), id have to include it into the same folder as the build, is there a way to have the images & such loaded in mySolution/Assets/someSprite.png instead?
7 Replies
Angius
Angius17mo ago
Why though?
The Fog from Human Resources
just wondering, this way it could (maybe) compile as a standalone application with its assets embedded? or would that not be possible
Angius
Angius17mo ago
You can set all the resources you want to be copied to the output folder automatically
The Fog from Human Resources
that works
Angius
Angius17mo ago
If you're using Rider or Visual Studio, right-click on the folder or the individual files, open properties, and set when they should be copied If you're using VS Code (why?) you can edit the .csproj file and set all the copy rules there
The Fog from Human Resources
im using VS2022 thanks a heartcat appreciated
Angius
Angius17mo ago
Anytime
Want results from more Discord servers?
Add your server