jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.19k stars 173 forks source link

Demonstrate how to ignore fields in examples #39

Closed alice-i-cecile closed 2 years ago

alice-i-cecile commented 2 years ago

From https://github.com/jakobhellermann/bevy-inspector-egui/blob/8c39d21a4783217d6d1589d74858530a53a94c54/tests/generics_bound.rs#L19, this feature already exists. However, it does not appear to be demonstrated in the examples, and is tricky for new users to discover.

A very simple dedicated example showing how and why to use this feature would be helpful!

jakobhellermann commented 2 years ago

I added an example showcasing the different attributes, thanks for the idea. https://github.com/jakobhellermann/bevy-inspector-egui/blob/main/examples/attributes.rs

The other place where one might discover the attributes would be in the docs for Inspectable: https://docs.rs/bevy-inspector-egui/latest/bevy_inspector_egui/trait.Inspectable.html#default-attributes