bevy_text_edit
Quickstart
Plugin
Add plugin TextEditPlugin to the app and define which states it will run in:
If you don't care to game state and want to always run input text, use TextEditPluginNoState:
Component
Insert component TextEditable and Interaction into any text entity that needs to be editable:
commands.spawn;
Only text that is focused by clicking gets keyboard input.
It is also possible to limit which characters are allowed to enter through allow and ignore attribute. Regex is supported:
commands.spawn;
License
Please see LICENSE.
Compatible Bevy Versions
| bevy | bevy_text_edit |
|---|---|
| 0.14 | 0.1-0.2, branch master |
| 0.13 | 0.0.1-0.0.5 |