Merge pull request #105687 from Calinou/doc-scenetree-custom-multiplayer
Document `SceneTree.set_multiplayer()` should be called in `_enter_tree()`
This commit is contained in:
@ -234,6 +234,7 @@
|
||||
<description>
|
||||
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.
|
||||
[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.
|
||||
[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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="unload_current_scene">
|
||||
|
||||
Reference in New Issue
Block a user