StartRecording(int)
Sets the animator in recording mode, and allocates a circular buffer of size frameCount.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
public void StartRecording(int frameCount)
Parameters
The number of frames (updates) that will be recorded. If frameCount is 0, the recording will continue until the user calls Animator.StopRecording. 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 is made. Additional Resources: Animator.StopRecording, Animator.recorderStartTime, Animator.recorderStopTime, Animator.StartPlayback, Animator.StopPlayback, Animator.playbackTime.