Open univeous opened 2 months ago
Interesting find.
I think that doing @Export var node: XXX?
can work for built-in types, where we can probe for Xxx
being of a built-in type [1], but would fail for things like Export var node: mySubNodeClass?
because we would not know what mySubnodeClass
is, but I think that those folks could use @Export (.nodeType, "Node") var node: mySubNodeClass?
For now, codes below's behavior is strange:
I hope it works as in GDscript, allow me to pick a node in scene; instead it gives me a huge list of resources to create, which is totally nonsense:
The code from document
works as I expected, but it's tedious.
I hope the bare
works like
@Export(.nodeType, "Node")
, or add another annotation like@ExportNode
that works as expected.