Can I implement constructors with arguments in GDExtension?

Godot Version

4.2.2

Question

In GDScript, when you define the _init(arg) function, the arguments to the new function are passed through and behave like a constructor with arguments.
Is it possible to implement a function similar to this behavior in GDExtension?

See not able to pass arguments to object during construction · Issue #953 · godotengine/godot-cpp · GitHub

2 Likes

Thanks for the information.

1 Like