#bevy-ui #coordinates #bevy #ui

bevy_ui_coords

Bevy UI coordinates

1 unstable release

0.1.0 Oct 19, 2024

#1985 in Game dev

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

~40–77MB
~1.5M SLoC