GDScript: Fix non-global class export

This commit is contained in:
Danil Alexeev
2024-06-20 13:05:29 +03:00
parent b75f0485ba
commit 24b6edcd38
7 changed files with 72 additions and 57 deletions

View File

@@ -314,7 +314,7 @@
@export var image_array: Array[Image]
@export var node_array: Array[Node]
[/codeblock]
[b]Note:[/b] Custom resources and nodes must be registered as global classes using [code]class_name[/code].
[b]Note:[/b] Custom resources and nodes should be registered as global classes using [code]class_name[/code], since the Inspector currently only supports global classes. Otherwise, a less specific type will be exported instead.
[b]Note:[/b] Node export is only supported in [Node]-derived classes and has a number of other limitations.
</description>
</annotation>