# CaptureNextFrameToFile(string)

> Begin capture to the specified file at the beginning of the next frame, and end it at the end of the next frame.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Apple](/engine/6000.6/script-reference/unityengine/apple.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void CaptureNextFrameToFile(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Remarks

This is the same as calling [FrameCapture.BeginCaptureToFile](/engine/6000.6/script-reference/unityengine/apple/framecapture/begincapturetofile.md) and [FrameCapture.EndCapture](/engine/6000.6/script-reference/unityengine/apple/framecapture/endcapture.md), but with implicit boundaries at the start and end of the frame.
