Skip to main content

print

Function print 

Source
pub fn print(ctx: &Context, text: impl Into<WidgetText>)
Available on crate feature egui only.
Expand description

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

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:?}"));