Crate bevy_simple_text_input

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_simple_text_input::{TextInputBundle, TextInputPlugin};

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

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

Structs§