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

GDScript named-class scripts don't appear in variable type selection #338

Open
Naros opened this issue May 11, 2024 · 0 comments
Open

GDScript named-class scripts don't appear in variable type selection #338

Naros opened this issue May 11, 2024 · 0 comments

Comments

@Naros
Copy link
Member

Naros commented May 11, 2024

Describe the bug

When a custom type is defined in GDScript using class_name, it is not shown in the variable type selection.

Expected behavior

Custom type should be selectable in the variable type dialog.

Actual behavior

It's not present.

How to Reproduce?

No response

Godot full version

4.2.1-stable

Orchestrator version

2.1.dev1

Additional information

So these global class names are provided via ProjectSettings::get_singleton()->get_global_class_list().

The main issue here is that there isn't a way that's clear for Orchestrator to obtain details about the custom types properties and methods without constructing an instance of the GDScript first, and then getting the data. We need to investigate if there is a way to get this from the language or some metadata cache in Godot to avoid this extra allocation.

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

1 participant