godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.07k stars 69 forks source link

Automatically unfold the Transform node inside the Inspector when selecting any object in the scene #9589

Open MileyHollenberg opened 2 months ago

MileyHollenberg commented 2 months ago

Describe the project you are working on

The project itself is irrelevant here, any project where you need to view the Transform node is affected by this

Describe the problem or limitation you are having in your project

When trying to set any of the Translation node values through the inspector to enter more precise positions you need to first select the object but then also unfold the Transform node before you're able to set these values. Once unfolded it does remember that state for at least the current session but it's an unnecessary extra click given the Transform node is such an integral part of any 3D game engine.

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

By having the Transform node be unfolded by default it will be more in-line with other game engines and reduce the need for the extra click to open up the Transform node. It will also make it easier to figure out the location, rotation and scale through a single click (that being the one to select the object itself) instead of two.

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

I believe this proposal is simple enough to understand, the first time an object is selected and has a Transform node attached, have it unfold it by default

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

Once implemented, no-one will not be able to use it given the nature of the change proposed

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

It's a direct change to the editor inspector that carries little to no risk of breaking other parts of the engine

Calinou commented 2 months ago

I don't remember if we have this behavior anywhere in the editor, where a section is always unfolded by default (unless it was previously folded). The default behavior is to have all sections folded unless they were previously unfolded.