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 support for text input.
- Forms
- Form element
- Form elements
- Re-export common use items for easy access.
Structs§
- Plugin group for all
bevy_ui_forms
plugins.
Attribute Macros§
- 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§
- Proc macro for deriving form actions This is intended to be used on an enum in conjunction with the
form_struct
macro