I am trying to to make twitter posts with an image that is in the project but I don’t know how to find the path
I know when I use capture screenshot I can find it at
Application.persistentDataPath + "/" + "name.png"
however I have no idea how to find an image that is already in the project.
How can i find an image in my project to use?
Files don’t exist as such in builds, and you certainly won’t find the source files, since those are never used after they’re converted by the editor (no PNG images or anything like that). Everything is compiled together into levels.
–Eric
Eric5h5:
Files don’t exist as such in builds, and you certainly won’t find the source files, since those are never used after they’re converted by the editor (no PNG images or anything like that). Everything is compiled together into levels.
–Eric
Is there anyway to have a couple of images appear in persistent data after compilation to use in that way?
would
Application.dataPath
be useful for this? Are any of the folders left untouched in assets if you want?
For anyone interested in doing this here is the answer
using the streaming assets folder