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

Make export nodes work with custom node types #4785

Closed
nathanfranke opened this issue Jun 30, 2022 · 1 comment
Closed

Make export nodes work with custom node types #4785

nathanfranke opened this issue Jun 30, 2022 · 1 comment
Milestone

Comments

@nathanfranke
Copy link
Contributor

nathanfranke commented Jun 30, 2022

Export node types: #1048
Export custom resources (similar): #18

Describe the project you are working on

RTS with a lot of export nodes to link properties (e.g. the owner of an entity is a player node).

Describe the problem or limitation you are having in your project

I can't limit the class of an export node to my custom class.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Allowing users to export custom node classes reduces the chance of mistakes when a specific node is expected in a variable. Also helps a ton with auto-completion.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

For example, in my entity class, I can have

@export var player: Player

If this enhancement will not be used often, can it be worked around with a few lines of script?

Will be used often. Can only be worked around with an additional variable.

Is there a reason why this should be core and not an add-on in the asset library?

GDScript is core

@akien-mga
Copy link
Member

Implemented by godotengine/godot#67055.

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

3 participants