# StartRecording(int)

> Sets the animator in recording mode, and allocates a circular buffer of size frameCount.

## Definition

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

```csharp
public void StartRecording(int frameCount)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of frames (updates) that will be recorded. If frameCount is 0, the recording will continue until the user calls [Animator.StopRecording](/engine/6000.6/script-reference/unityengine/animator/stoprecording.md). The maximum value for frameCount is 10000.

### Remarks

After this call, the recorder starts collecting up to *frameCount* frames in the buffer. Note it is not possible to start playback until a call to [Animator.StopRecording](/engine/6000.6/script-reference/unityengine/animator/stoprecording.md) is made. Additional Resources: [Animator.StopRecording](/engine/6000.6/script-reference/unityengine/animator/stoprecording.md), [Animator.recorderStartTime](/engine/6000.6/script-reference/unityengine/animator/recorderstarttime.md), [Animator.recorderStopTime](/engine/6000.6/script-reference/unityengine/animator/recorderstoptime.md), [Animator.StartPlayback](/engine/6000.6/script-reference/unityengine/animator/startplayback.md), [Animator.StopPlayback](/engine/6000.6/script-reference/unityengine/animator/stopplayback.md), [Animator.playbackTime](/engine/6000.6/script-reference/unityengine/animator/playbacktime.md).
