bevy-inspector-egui
bevy-inspector-egui copied to clipboard
Can't display `RangeInclusive<f32>`
This is pretty much just #165, but for the RangeInclusive<f32> type.
I tried adding the Plugin and tried registering the type explicitly, but neither worked.
The normal Range<f32> works flawlessly though.
Same problem here. And due to the orphan rule I can not implement the trait for RangeInclusive myself.
I've added support for RangeInclusive in 0.26.0: https://github.com/jakobhellermann/bevy-inspector-egui/commit/fb7bb148bde469da4efa8310ce183cb4b9aeb690
Same problem here. And due to the orphan rule I can not implement the trait for RangeInclusive myself.
For the record, you don't need to implement any trait to register a type as inspectable, just insert a new InspectorEguiImpl using function pointers: type_registry.get_mut(type_id).unwrap().insert(InspectorEguiImpl::new(fn_mut, fn_readonly, fn_many));