godotengine / godotengine/godot

Custom class "Editor" can't be added to scene using "Create New Node" dialog.

Open
#88,601 5 comments 0 reactions 0 assignees View on GitHub
discussion enhancement topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in: 3.4.4-stable, 3.5.3-stable, v4.2.1-stable, 4.3-dev3...

### System information

Godot v4.2.1.stable - Debian GNU/Linux 11 (bullseye) 11 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti () - 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz (12 Threads)

### Issue description

Custom class "Editor" can't be created using "Create New Node" dialog.
Can be created in GDScript. Autocomplete works.

![class_name_editor](https://github.com/godotengine/godot/assets/7192155/8a1664bb-cecd-4ec3-80c5-c0686a3e21fd)

P.S. The same on Windows.

### Steps to reproduce

1. Create custom class "Editor" using "class_name Editor extends Control".
2. Save.
3. Add new scene.
4. Try to add node "Editor" using "Create New Node" dialog.

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Godot by defining `class_name Editor extends Control`, saving it, and trying to add it through the Create New Node dialog. Compare this with creating the class in GDScript and verify that the custom Editor class appears and can be instantiated from the dialog.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.