Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetScreenshotCaptureFrameInterval(int)

Alter the rate that the Profiler takes a new screenshot for capture list thumbnails.
Read time 1 minuteLast updated 6 days ago

Definition

public static void SetScreenshotCaptureFrameInterval(int frames)

Parameters

frames

The number of frames until the next screenshot.

Remarks

By default, the Profiler takes a screenshot every 15 frames to be used when the profiling session is saved to disk. Use this function to alter how frequently that happens.
For example, set the value to 1 to screenshot every frame, to make sure the saved thumbnail is the most up-to date. Set to 0 or a negative number to disable the functionality.