Unity-inspired entity hierarchy and component editor via amethyst-imgui
#[derive(Inspect)]
on all components that you want to show up in the inspector. For example:
```rust
// InspectControl is a derive for drawing nested structs
pub struct Movement {
// nullto is what the field is set to on right click
// speed is how fast the slider can be dragged
#[inspect(nullto = 10., speed = 0.1)]
pub speed: f32,
pub direction: Vector2
// #[inspect(nodefault)] would disable adding this component
pub struct Player {
// will only show a dropdown for entities with this component
// also works for non-option Entity (however that can't be defaulted), U64Marker, Option
2. List all your components you want to show up in the inspector with an `inspector!` macro. This creates a system called `Inspector`.
rust
inspector![
Named,
Transform,
Rgba,
];
3. Add `InspectorHierarchy` and `Inspector` systems.
rust
.with(amethyst_inspector::InspectorHierarchy::
Drop me a line on discord or create an issue if you can help or have advice: