#text-input #bevy-plugin #bevy-ui #bevy #single-line #widgets #gamedev

bevy_simple_text_input

Bevy plugin for a simple single-line text input widget

14 releases (8 breaking)

0.9.2 Aug 26, 2024
0.8.0 Jul 4, 2024
0.5.1 Mar 7, 2024
0.3.1 Nov 5, 2023

#369 in Game dev

Download history 142/week @ 2024-07-29 112/week @ 2024-08-05 102/week @ 2024-08-12 176/week @ 2024-08-19 260/week @ 2024-08-26 90/week @ 2024-09-02 45/week @ 2024-09-09 63/week @ 2024-09-16 157/week @ 2024-09-23 135/week @ 2024-09-30 184/week @ 2024-10-07 133/week @ 2024-10-14 50/week @ 2024-10-21 13/week @ 2024-10-28 102/week @ 2024-11-04 44/week @ 2024-11-11

223 downloads per month

MIT/Apache

260KB
686 lines

bevy_simple_text_input

crates.io docs Following released Bevy versions

An unambitious single-line text input widget for bevy_ui.

animated screenshot of text input widget gaining focus and text typed and submitted

Usage

[!IMPORTANT] Code and examples in the main branch are under development and may not be compatible with the released version on crates.io. The latest branch will contain the code from the most recent release.

See examples/basic.rs.

Compatibility

bevy_simple_text_input bevy
0.8-0.9 0.14
0.4-0.7 0.13
0.3 0.12
0.1-0.2 0.11

Contributing

Please feel free to open a PR!

Keep in mind that I am not necessarily trying to build an enterprise-grade text input, just something that is good enough to be useful in small projects.

The code should be simple enough for users to quickly understand and modify for their own purposes. Any new dependencies must not also depend on Bevy.

Please keep PRs small and scoped to a single feature or fix.

Alternatives

If you need more features, check out bevy_cosmic_edit or bevy_egui.

Dependencies

~42–78MB
~1.5M SLoC