bevy_iced: use Iced UI programs in your Bevy application

Crates.io MIT/Apache 2.0

Example

```rust use bevy::prelude::*; use bevy_iced::{ IcedAppExtensions, IcedPlugin, iced::{Program, program::State}, };

[derive(Default)]

pub struct Ui { // Set up your UI state }

impl Program for Ui { // Set up your program logic }

pub fn main() { App::new() .addplugins(DefaultPlugins) .addplugin(IcedPlugin) .insertprogram(Ui::default()) .addsystem(ui_system) .run(); }

pub fn uisystem(mut uistate: ResMut>, /* ... */) { // Do some work here, then modify your ui state by running // uistate.queuemessage(..); } ```

See the examples and the documentation for more details on how to use the crate.

Todo

Credits