ソースを参照

Add a note about `Object._init` and required parameters in relation to `@rpc`

elenakrittik 8 ヶ月 前
コミット
2253c0f470
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
 				@rpc("authority", "call_remote", "unreliable", 0) # Equivalent to @rpc
 				func fn_default(): pass
 				func fn_default(): pass
 				[/codeblock]
 				[/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>
 			</description>
 		</annotation>
 		</annotation>
 		<annotation name="@static_unload">
 		<annotation name="@static_unload">