Skip to main content

on_egui

Function on_egui 

Source
pub fn on_egui(ui: impl Fn(&Context) + Send + Sync + 'static) -> Result<()>
Expand description

Runs ui every frame to build and draw an egui interface over the game.

Call it once (e.g. from on_init). The egui context, font texture and material are created on the render thread on the first frame. Mouse input is fed from UnityEngine.Input.