File Path Confusion for Sharing an Image
I'm having an issue with defining a path to an image that I want to share socially via a button in my game. I'm using a plugin (https://github.com/ChrisMaire/unity-native-sharing) and trying to share not a screenshot, but an image I currently have located in my Resources folder. Everything in the plugin works (title, link, text), but on my build on the phone, I'm getting an error that the image cannot be found.
I've tried to assign the path to a string variable with just the image name:
public string imagePath = "001-1.png";
and also with directing to the Resources folder from where the script is:
public string imagePath = "../Resources/001-1.png";
*note: both the Resources and Scripts folders are in the Assets folder.
So I think my question boils down to how Unity compiles the image file in the build and how I can access it? Do I need to move the image to a different folder? Or call the image a different way?
Any help would be VERY greatly appreciated, as this is driving me crazy. Thanks in advance!