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§
- Bevy
UiForms Plugins - 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§
- Form
Actions - Proc macro for deriving form actions
This is intended to be used on an enum in conjunction with the
form_struct
macro