- Home /
PNG not in .asset
Hello I have a problem. I am making a sharing function for android devices with android java intent. You can choose like twitter, whatsapp and so on to share your score.
So I did a screenshot und image share as well.
Now, I want to make it with an image (which is PNG) which is in the resources folder. The problem is the image is packed to assets file (I guess) so I cannot upload this image via twitter like screenshot because I have no path to the image file. Screenshots are saved in the game folder so I can access to it but not to the PNG file which is in the resources folder which is not png anymore after build.
So it is possible to get the image out off there and put it to a folder so I can access to that path. Or leave it after build in a folder?? That where very nice.
Lines looks similar to this:
string pathFull = "file:///" + Application.persistentDataPath + "/" + LastScreenshotPath;
AndroidJavaObject uriObject = uriClass.CallStatic<AndroidJavaObject>("parse", pathFull);
As you see I need a path to the image which is a PNG file.
Your answer
Follow this Question
Related Questions
Apply texture on prefab 1 Answer
Where is the Editor UI stored? 1 Answer
Image resize and save 0 Answers
Create PNG from dynamic mesh 1 Answer