- update to
bevy_egui
0.14 - update nalgebra feature to
nalgebra
0.31
- implement
Inspectable
forVecDeque
- update to bevy 0.7
- put
bevy_pbr
,bevy_sprite
,bevy_text
,bevy_ui
behind feature flags (enabled by default) - implement
Inspectable
forMesh2dHandle
(thanks to @tversteeg https://github.com/jakobhellermann/bevy-inspector-egui/pull/51)
- add
nalgebra
features forbevy-inspector-egui-rapier
integration crate - update to
bevy_egui
0.12 - fix allowed value range for
OrthographicProjection
- update to
bevy_egui
0.11 - sort components in world inspector by default
- update
egui
to 0.16 andbevy
to 0.6 - ability to filter entities by name in world inspector
- add
app.register_inspectable
for easyInspectableRegistry
access - add
highlight_changes
to world inspector params - use
&mut Context
instead of&Context
- fix external changes to quaternions not being displayed
- update to
egui
0.13,bevy_egui
0.6 - update to rapier
0.10
- rename
rapier
feature torapier3d
- fix
Quat
implementation to not modify unrelated state - expose
InspectorWindows
to allow controlling whether inspector ui is shown
- add
rapier2d
feature
- support for multiple windows using
InspectorPlugin::new.on_window(window_id)
(example) InspectorQuerySingle
(like.single_mut
on a query)ignore
,read_only
andwrapper
built-in attributes- optional
ui_ctx
- many new implementations (
Handle<Texture>
,ColorMaterial
,Entity
,World
, UI stuff, tuples) WorldInspectorPlugin
for displaying the whole entity tree in a UI panelwidgets::InspectorQuery
: display entity tree for select entities Use like#[derive(Inspectable)] struct Inspector { root_elements: InspectorQuery<Entity, Without<Parent>>, collider: InspectorQuery<&'static mut Transform, With<Collider0>>, }
widgets::InspectableButton
: sends event upon button click. Usage looks like- derive
Inspectable
for enums with data - drag and drop into texture
Inspectable::ui
now returns a bool which indicates whether any data has changed. You can now check viaRes<T>::changed
whether data was modified.- rename
InspectorPlugin::thread_local -> new, InspectorPlugin::new -> shared
- require
FromResources
instead ofDefault
on the inspectable data - update to
bevy 0.5
Inspectable::Attributes
requireClone
- show
Vec2
as two number fields by default, use#[inspectable(visual)]
for old behaviour - properly give ids to egui
- mark inspected components in the world inspector as mutated
- quaternions are now displayed as euler angles by default
- UI fixes for derived structs
- clamp number types to their
min
/max
values if set
-
another change to the
Inspectable
trait, it now gets a context from which bevy'sResources
can be access (provided it is started in thread-local mode)struct Context<'a> { resources: Option<&'a bevy::ecs::Resources> } trait Inspectable { type Attributes: Default; fn ui(&mut self, ui: &mut egui::Ui, options: Self::Attributes, context: &Context); }
This allows implementations for things like
Handle<T>
that need access so more information.When access to the resources is needed, add the plugin like
add.add_plugin(InspectorPlugin::<T>::thread_local())
-
implementations of
Inspectable
forStandardMaterial
andRange{,Inclusive}<T>
- impl Inspectable for the remaining number types
- impl Inspectable Mat{3,4}
ReflectedUI
wrapper type for automatically figuring out how to display a type based on theReflect
impl#[derive(Inspectable, Default, Debug)] struct Data { timer: ReflectedUI<Timer> }
- allow multiple inspector windows
- rename NumberAttributes::step to speed
- use the relecant number type to specify min and max of the NumberAttributes instead of always f64
- simplify inspectable trait, rename FieldOptions to Options
The trait now looks like this:
trait Inspectable { type Attributes: Default; fn ui(&mut self, ui: &mut egui::Ui, options: Self::Attributes); }
- try to convert Attributes using From::from
- first version with
Inspectable
support for number typesu8
,i32
andf{32,64}
,String
andVec<T>
and bevy'sColor
,Transform
,Quat
,Vec{2,3,4}
- derive
Inspectable
for unit enums (displays a dropdown) - derive
Inspectable
for struct #[inspectable(label = x, collapse)]
builtins for struct derivesnightly
features for arrayInspectable
impls