Diagnostics Overlay
Net/sim overlay: RTT, rates, interp delay, prediction error, cull tiers. Client-only.
Unity seams you implement 1
The client half's sockets. Bind your implementation in the client context and Crossplay's client calls it — this is where your models, animators, UI and controls plug in.
IDebugGizmoSource unity SPI
Game seam for the debug gizmos (C16): supply extra shapes to draw in the Scene view. Bind one or more; each is polled every gizmo repaint. Absent, only the framework-known gizmos (bounds, interest ring, observed entities) draw. Fill the provided list — it is reused, so this never allocates.
-
void CollectShapes(List<DebugGizmoShape> into)Appends this source's shapes to into (do not clear it).
Unity services you inject 1
Crossplay binds these in the client context. Inject and call them from your own MonoBehaviours and presenters.
IDiagnosticsSource
A pluggable overlay line: any piece or game registers one (multibind) and the diagnostics overlay prints it each sample — the client twin of the server's IMetricsTextSource. Return null/empty to print nothing this sample.
-
string SampleLine()One compact line for this sample (null/empty = skip).