ECMAScript icon indicating copy to clipboard operation
ECMAScript copied to clipboard

Custom Resources through ECMAScript

Open mageowl opened this issue 2 years ago • 2 comments

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

mageowl avatar Apr 23 '22 20:04 mageowl

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

mageowl avatar Jun 20 '22 16:06 mageowl

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 avatar Oct 10 '23 21:10 nmerget