haxe externs | editor plugin | demo | api doc | discussions
Generate Haxe/C# externs for Godot.
A generated version is available at https://github.com/HaxeGodot/godot/.
You need the commits from https://github.com/HaxeGodot/haxe/tree/cs-opt to properly generate the function overloads.
Create an input/
directory with:
GodotSharp.dll
,GodotSharp.xml
,GodotSharpEditor.dll
andGodotSharpEditor.xml
which you can find in the.mono
folder of a Godot C# projectGodotApi.json
generated fromgodot --gdnative-generate-json-api GodotApi.json
Godot/
directory of the Godot engine source code, this does not require it to be compiled
Run haxe generate.hxml
, the externs are created in a godot/
directory.
If the directory exists before the generation it'll be deleted.
You can change the root directory from the current working directory by adding -D output=some/path
to the haxe command.
- Mark deprecated functions
- Array access on
Vector2
,Vector3
,Transform
,Transform2D
,Quat
,Color
andBasis
- Missing types
Godot.DynamicGodotObject
andGodot.MarshalUtils
- Explicit constructors
- Function with type parameters on
PackedScene.Instance
,PackedScene.InstanceOrNull
cs.system.EventHandler_1
onGD.UnhandledException
The generator is MIT licensed, see <LICENSE.md>.