Hey. I have a “Share” button script that sends a screenshot of the screen.
How can I send any other image?
I tried to work with the folders StreamingAssets and Resource. But for some reason, it did not work.
The task is to replace screenShotPath with a link to own image * .png.
public static string content;
public string ScreenshotName = "screenshot.png";
public void Sharing (){
Application.CaptureScreenshot(ScreenshotName);
ShareScreenshotWithText (content);
}
public void ShareScreenshotWithText(string text)
{
text = content;
string screenShotPath = Application.persistentDataPath + "/" + ScreenshotName;
Share(text,screenShotPath,"");
}