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

Custom Resources through ECMAScript #124

Open
mageowl opened this issue Apr 23, 2022 · 2 comments
Open

Custom Resources through ECMAScript #124

mageowl opened this issue Apr 23, 2022 · 2 comments
Assignees
Labels
documentation Request/proposal related to documenation question Further information is requested
Milestone

Comments

@mageowl
Copy link

mageowl commented Apr 23, 2022

Currently, Godot will not recognize custom resource classes written in JS/TS.

@mageowl
Copy link
Author

mageowl commented Jun 20, 2022

does anyone have a solution/workaround besides using gd script and a ts interface?

@nmerget nmerget self-assigned this Oct 10, 2023
@nmerget
Copy link
Collaborator

nmerget commented Oct 10, 2023

I hope I understand the issue. I used this tutorial to reproduce what I think you want to do.

The main point is that you need to use @properties for @export like this.

I had to use TYPE_OBJECT to drag&drop the resource in the editor like this

@nmerget nmerget added documentation Request/proposal related to documenation question Further information is requested labels Oct 10, 2023
@nmerget nmerget added this to the Stable 4.1 milestone Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Request/proposal related to documenation question Further information is requested
Projects
Status: Backlog
Development

No branches or pull requests

2 participants