From 2253c0f47048b5df978bd83ba50770a24f9eab73 Mon Sep 17 00:00:00 2001 From: elenakrittik Date: Tue, 28 Jan 2025 16:45:30 +0300 Subject: [PATCH] Add a note about `Object._init` and required parameters in relation to `@rpc` --- modules/gdscript/doc_classes/@GDScript.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 73cb4ebd16..96764bc7c3 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -783,6 +783,7 @@ @rpc("authority", "call_remote", "unreliable", 0) # Equivalent to @rpc func fn_default(): pass [/codeblock] + [b]Note:[/b] Methods annotated with [annotation @rpc] cannot receive objects which define required parameters in [method Object._init]. See [method Object._init] for more details.