#bevy-ui #ui #coordinates #bevy

bevy_ui_coords

Bevy UI coordinates

1 unstable release

0.1.0 Oct 19, 2024

#1753 in Game dev

Download history 146/week @ 2024-10-14 25/week @ 2024-10-21

171 downloads per month

MIT license

5KB

Bevy Position Text Plugin ✨

Bevy plugin for displaying camera position UI text.

Features 🌟

  • Spawns a text entity with initial text.
  • Updates the text to display the camera's position in real-time.

Requirements ⚙️

  • Rust
  • Bevy 0.14+

Installation 📦

  1. Add the Bevy dependency to your Cargo.toml:

    [dependencies]
    bevy_ui_coords = "0.1.0" # or the latest version
    
  2. Include the PositionTextPlugin in your Bevy app:

     use bevy::prelude::*;
     use bevy_ui_coords::PositionUiTextPlugin;
    
     fn main() {
         App::new()
             ...
             .add_plugins(PositionTextPlugin)
             ...
             .run();
     }
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~41–78MB
~1.5M SLoC