Skip to content

Commit 0267481

Browse files
fix: keep UnifiedBootstrap as the Entities startup bootstrap
[DisableBootstrapOverrides] let Netcode for Entities' own bootstrap run at startup. Without a NetcodeConfig that disables automatic bootstrapping, it creates a host world listening on port 7979, so a hybrid host could not bind the port and the unified tests failed. As the startup bootstrap, UnifiedBootstrap only creates a local world, which is how #4144 resolved this.
1 parent 4c567d9 commit 0267481

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎com.unity.netcode.gameobjects/Runtime/Components/Helpers/UnifiedBootstrap.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ namespace Unity.Netcode
1212
/// NetworkManager during initialization.
1313
/// </summary>
1414
/// <remarks>
15-
/// Only <see cref="NetworkManager"/> creates it, and only for a session with hybrid prefabs. Without the attribute,
16-
/// Entities would pick it as the startup bootstrap for every project, replacing Netcode for Entities' own.
15+
/// Entities picks this as the startup bootstrap, which only creates a local world. Do not add
16+
/// [DisableBootstrapOverrides]: Netcode for Entities' own bootstrap would then run and, unless automatic
17+
/// bootstrapping is disabled, create a host world that holds the port a hybrid session listens on.
1718
/// </remarks>
18-
[DisableBootstrapOverrides]
1919
internal class UnifiedBootstrap : ClientServerBootstrap
2020
{
2121
public static UnifiedBootstrap Instance { get; private set; }

0 commit comments

Comments
 (0)