Skip to content

Commit 22b2262

Browse files
committed
Merge pull request #105687 from Calinou/doc-scenetree-custom-multiplayer
Document `SceneTree.set_multiplayer()` should be called in `_enter_tree()`
2 parents bdd3cb3 + 665342c commit 22b2262

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/SceneTree.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@
234234
<description>
235235
Sets a custom [MultiplayerAPI] with the given [param root_path] (controlling also the relative subpaths), or override the default one if [param root_path] is empty.
236236
[b]Note:[/b] No [MultiplayerAPI] must be configured for the subpath containing [param root_path], nested custom multiplayers are not allowed. I.e. if one is configured for [code]"/root/Foo"[/code] setting one for [code]"/root/Foo/Bar"[/code] will cause an error.
237+
[b]Note:[/b] [method set_multiplayer] should be called [i]before[/i] the child nodes are ready at the given [param root_path]. If multiplayer nodes like [MultiplayerSpawner] or [MultiplayerSynchronizer] are added to the tree before the custom multiplayer API is set, they will not work.
237238
</description>
238239
</method>
239240
<method name="unload_current_scene">

0 commit comments

Comments
 (0)