Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

Profiler.SetScreenshotCaptureFrameInterval

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void SetScreenshotCaptureFrameInterval(int frames);

Parameters

Parameter Description
frames The number of frames until the next screenshot.

Description

Alter the rate that the Profiler takes a new screenshot for capture list thumbnails.

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.