文档

Unity Engine

Unity Engine

StartRecording(int)

Sets the animator in recording mode, and allocates a circular buffer of size frameCount.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public void StartRecording(int frameCount)

Parameters

frameCount

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.