From 105495646191f2758779256589cac1aa5c583cdc Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 12 Oct 2020 19:37:50 +0200 Subject: Document remaining Visual Script classes --- .../doc_classes/VisualScriptFunctionCall.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'modules/visual_script/doc_classes/VisualScriptFunctionCall.xml') diff --git a/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml b/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml index 48104afcf7..f0b666e57a 100644 --- a/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml +++ b/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml @@ -1,8 +1,10 @@ + A Visual Script node for calling a function. + [VisualScriptFunctionCall] is created when you add or drag and drop a function onto the Visual Script graph. It allows to tweak parameters of the call, e.g. what object the function is called on. @@ -10,46 +12,66 @@ + The script to be used when [member call_mode] is set to [constant CALL_MODE_INSTANCE]. + The base type to be used when [member call_mode] is set to [constant CALL_MODE_INSTANCE]. + The type to be used when [member call_mode] is set to [constant CALL_MODE_BASIC_TYPE]. + [code]call_mode[/code] determines the target object on which the method will be called. See [enum CallMode] for options. + The name of the function to be called. + The node path to use when [member call_mode] is set to [constant CALL_MODE_NODE_PATH]. + The mode for RPC calls. See [method Node.rpc] for more details and [enum RPCCallMode] for available options. + The singleton to call the method on. Used when [member call_mode] is set to [constant CALL_MODE_SINGLETON]. + Number of default arguments that will be used when calling the function. Can't be higher than the number of available default arguments in the method's declaration. + If [code]false[/code], call errors (e.g. wrong number of arguments) will be ignored. + The method will be called on this [Object]. + The method will be called on the given [Node] in the scene tree. + The method will be called on an instanced node with the given type and script. + The method will be called on a GDScript basic type (e.g. [Vector2]). + The method will be called on a singleton. + The method will be called locally. + The method will be called remotely. + The method will be called remotely using an unreliable protocol. + The method will be called remotely for the given peer. + The method will be called remotely for the given peer, using an unreliable protocol. -- cgit v1.2.3