Skip to main content

ProfilingTrigger

A class in Root.Township, the global namespace.

Debug component: when triggered, takes nine profiler samples one after another through ProfilingCommandModule.

Constructors​

MemberWhat it is
ProfilingTrigger()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private int profilingNumber of the current sample.

Methods​

MemberWhat it is
void Profile()Starts the sample run.
1 private and internal method
MemberWhat it is
private void AdvanceProfiler()Starts the next 300-frame sample until nine have run.