Skip to main content

UnityProfilerSessionQuickAccessAction

A class in Root.Township, the global namespace.

Quick access menu action that records a 600-frame profiler sample and tells the player when it starts and finishes. Only shown to devs or in debug builds.

Constructors​

MemberWhat it is
UnityProfilerSessionQuickAccessAction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private int createdFilesCounter added to each profile name so files do not overwrite each other.
private const int ProfileFramesNumber of frames sampled, 600.
private const string ProfileNameBase name for the profile files, QAM_Profile.

Properties​

MemberWhat it is
override bool IsActive { get; }Always true.
override bool IsIgnored { get; }Hidden unless the user is a dev or it is a debug build.
override bool IsValid { get; }Usable only while no profiling is already running.

Methods​

MemberWhat it is
override void Run(Controller controller)Starts a profiler sample named with a running number and shows a message to the player.
1 private and internal method
MemberWhat it is
private void DisplayCompletionMessage()Shows Profiler Session Completed to the local player.