Skip to content

When creating a new script, Class Name is always "N/A" preventing auto-generation of class_name #75071

Closed
@hsandt

Description

@hsandt

Godot version

v4.0.stable.official [92bee43]

System information

Linux Ubuntu 22.04 with Unity desktop

Issue description

I always have to write my class_name myself, so I thought a setting to auto-generate class name from the script file name, or at least to manually input it at script file creation, would be nice.

I found the field I wanted in the Create Script popup as "Class Name", except the content is filled with N/A no matter what. It doesn't auto-fill from file name, and I cannot edit the field manually either.

I'm using Godot without C#. Is it only active in C#? Either way, it is still useful in GDScript to auto-fill class_name at the top.

image

First I'd like to see the expected behavior... If it's only meant for manual fill, then once it's fixed, I will submit a suggestion to go further and auto-fill from file name.

And forgive me if it was already reported. Turns out that searching "N/A" is super hard when so many issues set "Minimal reproduction project" as "N/A"... including this one!

Steps to reproduce

  1. Create a new script
  2. In the Create Script popup, note how Class Name is "N/A".
  3. Try to edit the field, to no avail.
  4. Edit the path, but Class Name is still not updated.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions