Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor panels for debugging during game play #156

Open
rewin123 opened this issue Jan 3, 2024 · 1 comment
Open

Editor panels for debugging during game play #156

rewin123 opened this issue Jan 3, 2024 · 1 comment
Labels
editor core Core functional of editor

Comments

@rewin123
Copy link
Owner

rewin123 commented Jan 3, 2024

#154 offers an interesting tool that will be particularly useful when debugging gameplay. Therefore, I propose to add the ability to display the editor UI during the game. And base a new UI on top of the existing editor UI and its tab mechanism. This would allow us to inspect the game state in real time, spawn objects for testing, send events, etc.

I think we can achieve this with minimal effort by introducing two checks for each editor tab.

trait EditorTab {
  fn visible_in_editor(&self) -> bool;
  fn visible_in_game(&self) -> bool;
}

And also store the tree of displayed tabs separately for editor and game debugging. The functionality will be close to bevy_editor_pls project, but broader and closer to Unity logic.

@rewin123 rewin123 added the editor core Core functional of editor label Jan 3, 2024
@rewin123 rewin123 added this to the 0.4 milestone Jan 3, 2024
@rewin123 rewin123 changed the title Editor panels for debagging during game play Editor panels for debugging during game play Jan 3, 2024
@naomijub
Copy link
Collaborator

naomijub commented Jan 6, 2024

What do you think about in game mode we spawn them as new windows?

Something like: If you press F1 a debug menu appears and you can select a tab to spawn as a new window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor core Core functional of editor
Projects
None yet
Development

No branches or pull requests

2 participants