Hi,
I'm currently writing some actions for Prime31 android plug-ins.
A roadblock has been hit. I'm attempting to pass a texture to post on Twitter (Social Networking plug-in).
This is the code from Prime31 which tweets a screengrab ...
public static string screenshotFilename = "someScreenshot.png";
Application.CaptureScreenshot( screenshotFilename );
var pathToImage = Application.persistentDataPath + "/" + screenshotFilename;
var bytes = System.IO.File.ReadAllBytes( pathToImage );
TwitterAndroid.postStatusUpdate( "This is going on twitter", bytes );
Any ideas on how I can adapt this for my Playmaker action, so I can use an FsmTexture in place of the screenshot used above?
Do I need to get the path to the FsmTexture to allow me to post the image? I played around with AssetDatabase.GetAssetPath() but, honestly, I didn't have a clue what I was doing
Thanks,
Steven