Files
dioxus/examples/10-integrations/native-headless-in-bevy
Nico Burns 2bbfccfd04 Native: implement hot-reloading of stylesheets (#4830)
* Make `tracing` feature of dioxus-native enable `tracing` feature of dioxus-native-dom

* Native: implement hotreloading of stylesheet assets

* Add asset support for native-headless-in-bevy example

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Remove println statements

Signed-off-by: Nico Burns <nico@nicoburns.com>

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
2025-10-24 15:56:55 -07:00
..

Example: Integrating Dioxus into a Bevy application

This example demonstrates rendering a Dioxus application onto a texture within a Bevy application.

Core Concepts

  • Render a headless Dioxus-native app to a texture.
  • Share and display the texture on a quad in the Bevy app.
  • Transmit mouse and keyboard events from Bevy to Dioxus.
    • Events are captured when hovering over elements with the catch-events class, ensuring only Dioxus receives them.
  • Manage application state through channel messages between Dioxus and Bevy.