void btnCaptureScreen() { if (GUI.Button(new Rect((Screen.width / 5f) * 3 + 10, 10, (Screen.width / 5f) - 20, (Screen.width / 5f) - 20), texScreenshot, "")) //if button Screenshot is press { //Clear screen when function Capture Screen excute GlobalVariable.Instance.getCapture = true; StartCoroutine(ScreenshotManager.Save("MyScreenshot", "PaintAR", true)); //save image capture to gallery if (GlobalVariable.Instance.savedCapture) { AndroidUtil.showToast("Saved image to gallery."); //push toast to scene } } }