jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.1k stars 164 forks source link

Getting `Range<f32>` to work? #165

Closed johanhelsing closed 3 months ago

johanhelsing commented 7 months ago

I'm using a bevy_particle_systems that has Range<f32> fields. And I get this message:

image

I tried both of these things, but it doesn't seem to help:

        app.register_type::<Range<f32>>()
            .add_plugins(DefaultInspectorConfigPlugin)
            .add_plugins(WorldInspectorPlugin::default())

As I understand it should be added by WorldInspectorPlugin anyway?

jakobhellermann commented 3 months ago

I forgot to answer here but this should be implemented since 0.22 :sweat_smile:

johanhelsing commented 3 months ago

Thanks!