Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
bevy-inspector-egui
This crate provides a debug interface using egui where you can visually edit the values of your components live.
Usage
You can either inspect a single resource using the InspectorPlugin
, or use the WorldInspectorPlugin
to inspect all entities.
InspectorPlugin
use *;
use ;
World inspector
use *;
use WorldInspectorPlugin;
You can configure the WorldInspectorPlugin
by inserting the WorldInspectorParams
resource.
If you want to only display some components, you may want to use the InspectorQuery instead.
Custom components in the world inspector
By default, types implementing Inspectable
will not be displayed in the WorldInspector
, because the there is no way to know of the trait implementation at runtime.
You can call world.register_inspectable::<T>()
to tell bevy-inspector-egui
how that type should be displayed, and it will show up correctly in the world inspector.
Alternatively, you can #[derive(Reflect)]
and call world.register_type::<T>()
. This will enable bevy's reflection feature for the type, and it will show up in the world inspector.
use *;
use ;
;
;
More examples (with pictures) can be found in the examples folder
.
Bevy support table
bevy | bevy-inspector-egui |
---|---|
0.6 | 0.8 |
0.6 | 0.7 |
0.5 | 0.5-0.6 |
0.5 | 0.4 |
0.4 | 0.1-0.3 |