pub fn on_egui(ui: impl Fn(&Context) + Send + Sync + 'static) -> Result<()>Available on crate feature
egui only.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.