Crate bevy_ui_forms

Source
Expand description

A Bevy plugin the provides a simple single-line text input widget.

§Examples

See the examples folder.

use bevy::prelude::*;
use bevy_ui_forms::{prelude::*, BevyUiFormsPlugins};

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(BevyUiFormsPlugins)
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands) {
    commands.spawn(Camera2dBundle::default());
    commands.spawn((NodeBundle::default(), TextInputBundle::default()));
}

Modules§

clipboard
Clipboard support for text input.
form
Forms
form_element
Form element
form_elements
Form elements
prelude
Re-export common use items for easy access.

Structs§

BevyUiFormsPlugins
Plugin group for all bevy_ui_forms plugins.

Attribute Macros§

form_struct
Derive macro available if serde is built with features = ["derive"]. Proc macro for generating a form plugin This macro is dirty and a struct should be placed in a separate file

Derive Macros§

FormActions
Proc macro for deriving form actions This is intended to be used on an enum in conjunction with the form_struct macro