bevy_ui_inspector

Crates.iobevy_ui_inspector
lib.rsbevy_ui_inspector
version0.3.0
sourcesrc
created_at2024-10-15 13:39:52.228413
updated_at2024-12-02 20:05:44.843353
descriptionA tool for inspecting bevy ui
homepage
repositoryhttps://github.com/mahulst/bevy_ui_inspector
max_upload_size
id1409464
size6,392,016
Michel van der Hulst (mahulst)

documentation

README

Bevy UI Inspector

A tool that tries to do what the html / css tools in the chrome dev tools do.

How to use

    App::new()
        .add_plugins((
            DefaultPlugins,
            UiInpector,
        ))
        .run()

    // To make the gizmos work correctly and not be drawn behind the UI.
    // Add a builtin bevy IsDefaultUiCamera component to your Camera.
    commands.spawn((
        Camera3d { ..default() },
        Transform::from_xyz(0.0, 0.0, 15.0).looking_at(Vec3::ZERO, Vec3::Y),
        IsDefaultUiCamera,
    ));

Features

  • A way to see the UI node hierarchy
  • Fiddling with styling properties while running the app
  • A picker to quickly go to a node you want to inspect

Demo

demo

Compatibility

bevy bevy_ui_inspector
0.15 0.3
0.14 0.2

Todos

  • More styling properties
  • Add background color
  • Add selection / changing of text
Commit count: 21

cargo fmt