bevy_editor_pls icon indicating copy to clipboard operation
bevy_editor_pls copied to clipboard

Add a way to set the default panels

Open nicopap opened this issue 3 years ago • 1 comments

We'd like to be able to set the panels at startup before the editor is shown. This commit allows this.

nicopap avatar Sep 02 '22 15:09 nicopap

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?

jakobhellermann avatar Sep 03 '22 13:09 jakobhellermann

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

jakobhellermann avatar Jan 05 '23 20:01 jakobhellermann