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

Allow hiding 2D Node origin gizmo cross #6344

Open
Drkie opened this issue Feb 22, 2023 · 6 comments
Open

Allow hiding 2D Node origin gizmo cross #6344

Drkie opened this issue Feb 22, 2023 · 6 comments

Comments

@Drkie
Copy link

Drkie commented Feb 22, 2023

Describe the project you are working on

A 2D game with very complex scenes.

Describe the problem or limitation you are having in your project

Currently in the editor, it's possible to hide pretty much everything except for the origin cross of a 2D Node.
image

This makes it impossible to take a clean screenshot of a scene from within the editor. In complex scenes, you can easily have dozens of these crosses making it impractical to Photoshop them out.

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

A simple checkbox that makes these crosses invisible would easily solve this problem. It would also be consistent with the current options, since everything else can be hidden.

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

An option under the currently existing ones could be added.
image

(Although this screenshot is from Godot 3, Godot 4 does not have an option to hide it either.)

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

As far as I know, there's no way to do so.

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

As far as I know, there's no way to do so.

@Calinou
Copy link
Member

Calinou commented Feb 23, 2023

Maybe this option should be grouped with Show Group and Lock Icons?

@Drkie
Copy link
Author

Drkie commented Feb 23, 2023

For my purposes, that would be OK. It might also help to not clutter that menu with too many options.

I can't think of a situation in which I'd like to see the crosses but not the lock icons.

@J-N-Witch
Copy link

I've implemented this proposal in the following manner:

on

off

However, one more case should be specified. How do we handle selected nodes? Do we show them regardless of the setting or not?

select

For the purposes of making a clean screenshot either way is acceptable since the selection can be easily undone.

Furthermore, if we are grouping this with "Show Group and Lock Icons" then a new name is needed. I think that "Show Gizmos" is a reasonable one.

@Drkie
Copy link
Author

Drkie commented Mar 14, 2023

I believe it makes sense to always show the selected nodes' gizmos regardless of the setting. In fact, it might have the added utility of making it easier to visually track down the selected node, since there are now less crosses on screen.

@J-N-Witch
Copy link

It seems that Godot 4 has introduced yet another option in this menu. "Show Transformation Gizmos"

4

With this in mind, arbitrarily grouping Group, Lock, Position gizmos into one option isn't ideal. Renaming "Show Group And Lock Icons" to "Show Gizmos" won't work either.
It might be better to have a submenu with separate options like this:

menu.mp4

@Drkie
Copy link
Author

Drkie commented Mar 15, 2023

Personally, I'm really liking the submenu approach. It maximizes both cleanliness and granularity.

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