public sealed class StatisticsViewWhat is in the scene, against what somebody said should be.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Every row carries its budget as a bar rather than only as a number. "48 233 entities" says nothing on its own; "48 233 of 100 000" is a fact somebody can act on, and a bar is how a person reads that at a glance while they are doing something else.
⚠ Warnings are listed rather than only coloured. A row tinted amber is invisible to anyone who is not looking at that row, and the whole value of a statistics panel is that it is noticed by somebody who opened it for another reason.
Fields and properties (8)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public UiElement ToolbarThe strip along the top.
public Button RefreshWhat takes a fresh count.
public UiElement BodyWhere the counted things go.
public UiElement WarningsWhere the warnings go.
public Func<SceneStatistics>? SourceWhat produces a fresh count, or when nothing can.
public SceneStatistics? StatisticsThe count on screen.
Methods (3)
public void Take()Takes a fresh count, if there is anything to count.
public void Show(SceneStatistics statistics)Shows a count somebody else took.
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
Used by (2)
- DiagnosticsModuleVixen.Editor.Diagnostics
- DiagnosticsPanelTestsVixen.Editor.App.Tests