Path to image in resources.
Hi!
I am attempting to implement the unity-native-sharing plugin found here: https://github.com/ChrisMaire/unity-native-sharing .
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 = "")
{
What about Strea$$anonymous$$g Assets? It seems you can use them in your task: http://docs.unity3d.com/$$anonymous$$anual/Strea$$anonymous$$gAssets.html
Answer by rahulbhansali · Sep 08, 2017 at 06:03 AM
@MisterMr - Hey Did you find the solutions?
I am also looking for the same solutions.
Your answer
![](https://koobas.hobune.stream/wayback/20220612063755im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Starting multiple Unity instances/tasks from same (android) application? 1 Answer
Share to facebook, twitter,etc. Ios Please help out 0 Answers
Unity iOS send bluetooth data to Arduino (Plugin?) 0 Answers
iOS native sharing script 1 Answer
'GoogleMobileAds/GoogleMobileAds.h' file not found 4 Answers