Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Path to image in resources.

$
0
0
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 = "") {

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>