Daniel Lyons' Notes

@Callable macro

Doesn't work inside an extension

The @Callable macro only works in your class definition, and will not work on Swift class extensions.

Gotchas

At the moment it seems like the Callable macro is broken if the function accepts Variant as a parameter.

@Callable func callable(_ variant: Variant) {
	GD.print("Called callable with \(variant)")
}

Docs

@Callable macro
Interactive graph
On this page
Gotchas
Docs