Context objects - Methods

2025-02-07

Methods can be invoked from javascript, however return values are not supported.

gdscript

func test_func(some_arg: int, another_arg: Array):
    print("test_func called with args: ", some_arg, " ", another_arg)

javascript

$g.example_obj.test_func(123, ["foo", "bar", 567])