Skip to main content

BudgetedUpdateModuleProfilerComponent

A class in Root.Township, the global namespace.

Debug component that turns budgeted update module timing on or off from the inspector and lists each module's average time.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private List<BudgetedUpdateModuleProfiler.BudgetedData> allBudgetedModulesModule data shown in the inspector.
private bool isTrackingAllowanceInspector toggle for tracking.

Methods​

4 private and internal methods
MemberWhat it is
private void OnValidate()Starts or stops tracking when the inspector toggle changes.
private void StartTrackingAllowance()Turns on BudgetedUpdateModule.IsDebuggingAllowance and clears old data.
private void StopTrackingAllowance()Turns off allowance debugging and clears the data.
private void Update()Refreshes the shown list when modules are added and updates each average.