During PIE instance initialization, there seems to be a window during which UWorld::GetNetMode will not return the expected value: before the instance's NetDriver has been created but after UGameInstance::StartPlayInEditorGameInstance calls UWorld::InitializeActorsForPlay. Because the Actors are initialized, the PlayInEditorNetMode will not be returned, but the URLNetMode retrieved from AttemptDeriveFromURL will still be NM_Standalone.
Start a PIE session using either the "Play as Listen Server" or "Play as Client" Net Mode.
Call UWorld::GetNetMode during the GameMode's InitGame function.
Expected: The world's NetMode would either be NM_ListenServer or NM_DedicatedServer depending on the Net Mode selected.
Actual: The world's NetMode will be NM_Standalone.
Lyra Repro:
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-174595 in the post.
0 |
Component | UE - Networking |
---|---|
Target Fix | 5.3 |
Created | Jan 19, 2023 |
---|---|
Resolved | Feb 27, 2023 |
Updated | May 19, 2023 |