ResetToZeroOnFlush
Specifies that the counter's current value should be reset to zero each time it is reported to the Unity Profiler.
Read time 1 minuteLast updated 10 days ago
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