bevy_editor_pls
bevy_editor_pls copied to clipboard
Add a way to set the default panels
We'd like to be able to set the panels at startup before the editor is shown. This commit allows this.
Makes sense . Can you name the method set_default_editor_panels and run cargo fmt?
Have you tried what happens when the type used as a panel isn't valid? Does the app crash or do we display an error text instead?
I switched to egui_dock in main. So I'm going to close this PR, if we want better support for setting default panels we should open a new one.
I made the EditorInternalState public (maybe it should have another name), so now you can at least do it like the EditorPlugin does it:
https://github.com/jakobhellermann/bevy_editor_pls/blob/ef8977e1c824a32438452e4b49ae3317d8858687/crates/bevy_editor_pls/src/lib.rs#L54-L58