Skip to content

Commit 2253c0f

Browse files
elenakrittikakien-mga
authored andcommitted
Add a note about Object._init and required parameters in relation to @rpc
1 parent 48f361a commit 2253c0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/gdscript/doc_classes/@GDScript.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@
783783
@rpc("authority", "call_remote", "unreliable", 0) # Equivalent to @rpc
784784
func fn_default(): pass
785785
[/codeblock]
786+
[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.
786787
</description>
787788
</annotation>
788789
<annotation name="@static_unload">

0 commit comments

Comments
 (0)