Skip to content

Commit 9d9e90b

Browse files
committed
Merge pull request #102123 from elenakrittik/docs/add-init-example
Add a note about `Object._init` and required parameters in relation to `@rpc`
2 parents 48f361a + 2253c0f commit 9d9e90b

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)