ResetToZeroOnFlush
Specifies that the counter's current value should be reset to zero each time it is reported to the Unity Profiler.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: Unity.Profiling
- Assembly: UnityEngine.CoreModule
ResetToZeroOnFlush = 4
Remarks
If the counter has also been configured with ProfilerCounterOptions.FlushOnEndOfFrame, then this will cause the counter's value to be reset to zero at the end of every frame. Otherwise, it will be reset to zero every time it is manually reported via its method.
Sample