文档

Unity Engine

Unity Engine

Capacity

Maximum amount of samples ProfilerRecorder can capture.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.Profiling
  • Assembly: UnityEngine.CoreModule
public int Capacity { get; }

Remarks

Shows the maximum amount of samples the ProfilerRecorder can capture. You can use this to set a maximum array size when you copy collected sample data with ProfilerRecorder.CopyTo or ProfilerRecorder.GetSample methods.