You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
This isn't a runtime bug, but more of docs "bug" :).
There is conflicting information in the docs regarding NetworkObject Parenting. These two statements (i) and (ii) seem to conflict with each other. In addition, statements (i) and (ii) seem to conflict with statement (iii)
Only spawned NetworkObjects can be parented
A NetworkObject component can only be parented if it's spawned and can only be parented under another spawned NetworkObject component. This also means that NetworkObject component parenting can only occur during a network session (netcode enabled game session).
Before detailing Boss Room's approach to NetworkObject parenting, it's important to highlight a limitation of Netcode: A dynamically-spawned NetworkObject can't contain another NetworkObject in its hierarchy. If you spawn such a NetworkObject, you can't spawn children NetworkObjects. You can only add children NetworkObject components to a NetworkObject that is part of a scene.
These three statements seem to contradict. (Or maybe I am just misunderstanding something here!) I understand these statements to mean,
(i) I can parent two NetworkObjects during design time in the Unity editor.
(ii) I cannot parent two NetworkObjects during design time in the Unity editor, and instead I must perform the parenting during a network session.
(iii) I cannot parent NetworkObjects during a network session, and instead I must do it during design time in the Unity Editor.
The text was updated successfully, but these errors were encountered:
Describe the bug:
This isn't a runtime bug, but more of docs "bug" :).
There is conflicting information in the docs regarding NetworkObject Parenting. These two statements (i) and (ii) seem to conflict with each other. In addition, statements (i) and (ii) seem to conflict with statement (iii)
(i) Can Nest both In-Scene and Dynamically Spawned NetworkObjects
and
(ii) Can Only Nest Dynamically Spawned NetworkObjects (and not In-Scene NetworkObjects)
and
(iii) Can Only Nest In-Scene NetworkObjects (and not Dynamically Spawned NetworkObjects)
These three statements seem to contradict. (Or maybe I am just misunderstanding something here!) I understand these statements to mean,
The text was updated successfully, but these errors were encountered: