Hi!
I am attempting to implement the unity-native-sharing plugin found here: GitHub - NicholasSheehan/Unity-Native-Sharing: A Unity plugin to open native sharing dialogs on iOS and Android, primarily for text and files .
Its all going well except I am trying to share an image that is stored in resource folder in Unity instead of a screenshot.
I am wondering what to put for the image path for the pictures in the resource folder.
Here is the part I am trying to work out.
public class NativeShare : MonoBehaviour {
public string ScreenshotName = “screenshot.png”;
public void ShareScreenshotWithText(string text)
{
string screenShotPath = Application.persistentDataPath + "/" + ScreenshotName;
Application.CaptureScreenshot(ScreenshotName);
Share(text,screenShotPath,"");
}
public void Share(string shareText, string imagePath, string url, string subject = "")
{