jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.19k stars 173 forks source link

WorldInspector component sorting #6

Closed DarkMara closed 3 years ago

DarkMara commented 3 years ago

I think it would be useful to be able to sort the components when inspecting an entity with the WorldInspector. I think sorting by name would be a good default.

jakobhellermann commented 3 years ago

I can add that possibility, but I'm not sure I like it as a default. For example, without sorting the Transform and GlobalTransform are next to each other, with sorting they are not.

DarkMara commented 3 years ago

Yeah that's true. Once you get a lot of components though it gets difficult to use unless there is some kind of sorting. You can add it as a setting.

jakobhellermann commented 3 years ago

You can now

app
    .insert_resource(WorldInspectorParams {
        sort_components: true,
        ..Default::default()
    })
    .add_plugin(WorldInspectorPlugin)