Function egui::debug_text::print

source ·
pub fn print(ctx: &Context, text: impl Into<WidgetText>)
Expand description

Print this text next to the cursor at the end of the frame.

If you call this multiple times, the text will be appended.

This only works if compiled with debug_assertions.

egui::debug_text::print(ctx, format!("State: {state:?}"));