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

Show Scene camera preview in Game editor when not running #11597

Open
kitbdev opened this issue Jan 17, 2025 · 3 comments
Open

Show Scene camera preview in Game editor when not running #11597

kitbdev opened this issue Jan 17, 2025 · 3 comments

Comments

@kitbdev
Copy link

kitbdev commented Jan 17, 2025

Describe the project you are working on

The Godot editor

Describe the problem or limitation you are having in your project

The Game editor is mostly empty when a game is not running in it. This space can be used better.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

A game camera preview can be shown here at all times that the game is not running in it. Unlike the preview when clicking on a Camera3D, this would be a 2D and 3D preview that is available even when the camera is not selected.
The goal is to make a preview of what would show when the scene is run.
This way the Game tab is useful even when not running a game.
Also this is what Unity does with its Game view.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

The Game Editor tab would show a live preview of the selected scene, as an estimate of what the game shows when run.
It should take into account the target resolution as well.

The current text that shows the status would either be moved to the bottom, or superimposed on top of the preview, to make it clear that it is only a preview and not interactable.

I imagine the implementation would be similar to the Camera3D preview godotengine/godot#90778, but it finds the current camera and handles 2D rendering as well.

Image

If this enhancement will not be used often, can it be worked around with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

To improve the default behavior of the editor and fill unused space.

@SilverWolveGames
Copy link

SilverWolveGames commented Jan 17, 2025

As an ex-Unity user, this feature would be a very great addition to Godot.

@Calinou
Copy link
Member

Calinou commented Jan 18, 2025

This may be confusing if you're not aware that the project is not currently running though. You may wonder why your game code isn't running even though you're seeing a 2D/3D view in the Game tab.

@Elip100
Copy link

Elip100 commented Jan 21, 2025

This may be confusing if you're not aware that the project is not currently running though. You may wonder why your game code isn't running even though you're seeing a 2D/3D view in the Game tab.

There could be an indicator stating that the game is not running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants