Skip to content

Set human-readable names for the editor's nodes #1018

@Calinou

Description

@Calinou

Describe the project you are working on:

The Godot editor 🙂

Describe the problem or limitation you are having in your project:

When implementing new features in the editor, it's often useful to refer to the scene tree to see how things are organized. This can be done using print_tree_pretty() or with Zylann's excellent EditorDebugger add-on.

Unfortunately, most nodes in the editor don't have manually-assigned names, which makes this tree much less human-readable than it could be.

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

Assigning names to nodes will make it easier for contributors to work on the editor. This will let them fix bugs and add new features more efficiently.

This can also be useful for add-on developers. That said, we don't make any guarantees as to node names not changing over time, so this should not be regarded as a reliable solution for get_node() in add-ons.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

This is already being done in some places, such as here:

https://github.com/godotengine/godot/blob/f54eda121d975127f68db624265271d39d8dabf3/editor/node_3d_editor_gizmos.cpp#L4257

This proposal is just a matter of doing the same for all nodes used in the editor. Names should use the PascalCase convention for consistency, unless the node name is being displayed in the UI somehow (e.g. for use in TabContainer).

This task should be relatively easy, but it'll take a while to name all nodes in the editor.

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

No, as this is core editor functionality.

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

This is core editor functionality.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions