hi there,
try something like this in Unity:
void LateUpdate(){
...
takeHiResShot |= Input.GetKeyDown ("s");
if (takeHiResShot) {
ScreenCapture.CaptureScreenshot (<pathname>);
takeHiResShot = false;
}
...
}
the Input "s" the "s" on the Keyboard..
you can do something like this to do it with an GUI.Button (do not delete the EventSystem in the Unity scene and add the objcet with the script to the onClick function at the inspector of the button and choose the TakeHiResShot function):
public void TakeHiResShot(){
takeHiresShot = true;
}