Click or drag to resize

ObjectCall Method

Calls the method on the object and returns the result. This method supports a variable number of arguments, so parameters are passed as a comma separated list. Example:

call("set", "position", Vector2(42.0, 0.0))

Note: In C#, the method name must be specified as snake_case if it is defined by a built-in Godot node. This doesn't apply to user-defined methods where you should use the same convention as in the C# source (typically PascalCase).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Object Call(
	string method,
	params Object[] args
)

Parameters

method
Type: SystemString

[Missing <param name="method"/> documentation for "M:Godot.Object.Call(System.String,System.Object[])"]

args
Type: SystemObject

[Missing <param name="args"/> documentation for "M:Godot.Object.Call(System.String,System.Object[])"]

Return Value

Type: Object

[Missing <returns> documentation for "M:Godot.Object.Call(System.String,System.Object[])"]

See Also