Merge pull request #102123 from elenakrittik/docs/add-init-example

Add a note about `Object._init` and required parameters in relation to `@rpc`
This commit is contained in:
Rémi Verschelde 2025-06-21 11:13:55 +02:00
commit 9d9e90b026
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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.
</description>
</annotation>
<annotation name="@static_unload">