| Crates.io | bevy_bc_ime_text_field |
| lib.rs | bevy_bc_ime_text_field |
| version | 0.0.5 |
| created_at | 2025-07-11 11:33:22.388144+00 |
| updated_at | 2025-10-23 06:24:59.250839+00 |
| description | A simple IME-compatible text field plugin for Bevy (Windows only). Supports both UI and 2D text input. |
| homepage | |
| repository | https://github.com/SheepBC/bevy_bc_ime_text_field |
| max_upload_size | |
| id | 1747806 |
| size | 183,155 |
A simple IME-compatible text field plugin for Bevy (Windows only).
Supports both UI and 2D text input.
Add this to your Cargo.toml:
[dependencies]
bevy_bc_ime_text_field = "VERSION"
bevy Version |
bevy_bc_ime_text_field Version |
|---|---|
0.16 |
0.0.1 ~ |
use bevy::color::palettes::css::PINK;
use bevy::prelude::*;
use bevy_bc_ime_text_field::*;
use bevy_bc_ime_text_field::text_field::*;
use bevy_bc_ime_text_field::text_field_style::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(ImeTextFieldPlugin)//✅required
.add_systems(Startup,setup)
.run();
}
fn setup(
mut commands: Commands,
asset_server: Res<AssetServer>
){
commands.spawn(Camera2d);
//✅collects
commands.spawn(
TextField::new2d(true),
);
commands.spawn(
TextField::new(true)
);
commands.spawn((
TextField::new2d(false),
TextFieldStyle {
color: PINK.into(),
..Default::default()
}
));
commands.spawn((
TextField::default(),//✅required
TextFieldInfo::default(),
TextFieldStyle::default(),
TextFieldInput::default(),
//text
Text::default(),
//text2D
/*
Text2d::default(), //✅required
Sprite::default(),
Pickable::default(),
*/
));
//❌incorrect
commands.spawn((
TextField::new(true),
TextFieldInfo::default(),
));
}