Skip to content
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

Open
KoBeWi opened this issue Jun 12, 2020 · 3 comments
Open

Create class without showing on node list #1047

KoBeWi opened this issue Jun 12, 2020 · 3 comments

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jun 12, 2020

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 of class_name :I

Describe 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.

@AnidemDex

This comment has been minimized.

@Calinou

This comment has been minimized.

@Shadowblitz16
Copy link

Shadowblitz16 commented Sep 22, 2021

This is exactly what i am looking for.
I think it should be by default not added to the node/resource dialog
Its more likely they are using it for type name then a node/resource template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants