Registering a class_name in a "built-in" script seems to not work.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jay Kyburz

I’ve been creating my scripts as “built-in” script simply to reduce the number of assets i have to browse in the resources folder, but when I use class_name to register a script as a class, the editor doesn’t seem to find it.

Seems to work fine when the script is saved as a .gd file.

Is this just not quite done yet? or perhaps some limitation of the built-in script system.

Should I keep using built-in scripts or change to external scripts?

:bust_in_silhouette: Reply From: Jay Kyburz

Answer my own question. class_names will not be supported in built-in script. There is a change coming in 3.2 that will present a warning when you try to do so.