Saving a screenshot on iOS

Updated on September 21, 2018 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on September 21, 2018

My goal is to have the button save the screenshot to the photo gallery on a iOS device

 

using UnityEngine;
// Generate a screenshot and save to disk with the name SomeLevel.png.
public class ExampleScript : MonoBehaviour
{
void OnMouseDown()
{
ScreenCapture.CaptureScreenshot("SomeLevel");
}
}

 

Any insight out there, I can’t get this method above to work?

  • Liked by
Reply