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

Add setting "Default Dimension" #2947

Open
MaaaxiKing opened this issue Jul 4, 2021 · 9 comments
Open

Add setting "Default Dimension" #2947

MaaaxiKing opened this issue Jul 4, 2021 · 9 comments

Comments

@MaaaxiKing
Copy link

Describe the project you are working on

Any new one

Describe the problem or limitation you are having in your project

I only make 2D games, but the editor always opens the 3D tab.

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

The editor would open the tab that was set instead of always 3D.

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

At Editor Settings → Interface → Editor, there should be a setting "Default Dimension" which can be set to

  • previous (default; for the first project, there is no default, so choose one of the below)
  • 2D
  • 3D

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?

Yes, I think that it annoys a bulk of all users.

@YuriSizov
Copy link
Contributor

YuriSizov commented Jul 4, 2021

Go to Editor > Manage Editor Features....

image

Create a new profile, disable 3D Editor and then make that profile current.

image

See also #1352

@MaaaxiKing
Copy link
Author

Nice workaround, but that cannot be how it must be done for the future.

@YuriSizov
Copy link
Contributor

YuriSizov commented Jul 4, 2021

It's not a workaround, it's how you configure the editor for your needs. Solving your presented problem is precisely what this feature is for.

If you don't need 3D, you disable it, you can also disable all Spatial nodes in that menu.

@Zireael07
Copy link

This is a solution only if you don't want 3D nodes ever. However, I often find myself working on two projects, one exclusively 3D and the other exclusively 2D. Having to toggle editor features every time is... painful.

@YuriSizov
Copy link
Contributor

@Zireael07 Fair, but the proposal presents this exact problem: "I only make 2D games, but the editor always opens the 3D tab."

Tying a feature profile to a project can be a good enhancement though.

@Calinou
Copy link
Member

Calinou commented Jul 4, 2021

See godotengine/godot#41036 and #827.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 4, 2021

I only make 2D games, but the editor always opens the 3D tab.

If you make a 2D game, aside from just after creating the project, you will never see the 3D tab unless clicked manually. Or maybe you are using Node instead of Node2D as scene roots?

@MaaaxiKing
Copy link
Author

The latter is the case.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 4, 2021

Using Node roots in 2D scenes doesn't have any benefit and you wouldn't have this problem if you used Node2D.

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

5 participants