pub fn show_labels_fallback<C: Component>(ctx: &QueryContext<'_>) -> ShowLabels
Expand description

Given a visualizer’s query context, compute its ShowLabels fallback value (used when neither the logged data nor the blueprint provides a value).

Assumes that the visualizer reads the Text component for components. The type parameter C must be the component type that defines the number of instances in the batch.

This function is normally used to implement the ComponentFallbackProvider that will be used in a LabeledBatch.