idanarye / bevy-tnua

A floating character controller for Bevy
https://crates.io/crates/bevy-tnua
Apache License 2.0
180 stars 12 forks source link

Make configuration components inspectable by bevy-inspector-egui #16

Closed rparrett closed 1 year ago

rparrett commented 1 year ago

This adds Reflect derives for TnuaPlatformerConfig and TnuaFreeFallBehavior and adds them to the app's type registry.

This makes them inspectable / editable with bevy-inspector-egui.

This should be harmless for non-users of bevy-inspector-egui. It should also make the components serializable in bevy scenes. (But to totally purpose, the rest of other components of TnuaPlatformerBundle and their properties need to implement Reflect as well.)

https://user-images.githubusercontent.com/200550/232180304-1e264c08-54eb-4017-b861-af6f615dc563.mp4