浏览代码

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

Add a note about `Object._init` and required parameters in relation to `@rpc`
Rémi Verschelde 4 月之前
父节点
当前提交
9d9e90b026
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/gdscript/doc_classes/@GDScript.xml

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