Haxe Godot externs - Updated for Godot 3.4

The externs have been updated for Godot 3.4 (api documentation) and are available on haxelib.

(EDIT: there was a small issue and I released a patched version 3.4.1 on haxelib)

The release also include improved type safety for signals and actions, better interoperability for arrays, the editor classes and @:tool metadata. With scripts no longer requiring to be attached to a node to be compiled.

The @:onready metadata allows you, similarly to gdscript’s onready, to delay a variable initialization until the node is ready.

@:onready var myNode = getNode("Path/To/Node).as(Spatial);

If you have a bug open an issue on github and for other questions use the github discussions.

7 Likes