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
| Member | What it is |
|---|
BudgetedUpdateModuleProfilerComponent() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
4 private and internal methods
| Member | What 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. |