-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create class without showing on node list #1047
Labels
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is exactly what i am looking for. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the project you are working on:
A game with lots of scripts.
Describe the problem or limitation you are having in your project:
I use the typing, mostly for better autocompletion and stuffs. However I have many scripts for which I want to have types, but I don't instance them from the editor. So I either use
class_name
and cope with my node list being cluttered or preload the script, which kills the purpose ofclass_name
:IDescribe the feature / enhancement and how it helps to overcome the problem or limitation:
I just want a way to use
class_name
without adding the class to node list, so I can use it as a type.Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Maybe this could be annotation, like
@no_editor class_name MyClass
. This would register the type, but it wouldn't show on the node list when adding a child node.If this enhancement will not be used often, can it be worked around with a few lines of script?:
I can workaround it with
preload(script.gd)
, but it's meh.Is there a reason why this should be core and not an add-on in the asset library?:
Can't be an add-on.
The text was updated successfully, but these errors were encountered: