In UGameInstance::StartPlayInEditorGameInstance, the server instance will go through the normal process of creating the URL using BuildPlayWorldURL, which checks the FGameInstancePIEParameters' bStartInSpectatorMode flag and adds the "SpectatorOnly=1" option to the URL if it is true.
However, when starting a PIE client instance, a basic "127.0.0.1:17777" URL will be created without checking bStartInSpectatorMode. The client instance will call Browse with this URL to connect to the server instance, so the client will start with the default game pawn rather than as a spectator.
Using multiplayer PIE options (e.g. Number of Players > 1 and Net Mode set to "Play As Client"), hold the Control key while pressing the play button to start the instances in spectator mode.
Expected: the clients would be using the default spectator pawns
Actual: the clients will be using the game's default pawns
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
What is the difference between Camera and CineCamera?
How to assign a value to a member of UMG's UMaterialInterface pointer type in C++?
Why does the volume fog disappear from a distant view?
How to convert the datasmith scene file to BluePrint. Create animations in BluePrint.
Why does the system plugin 'UnrealBuildTool' error could not be found when the project is compiled?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-170221 in the post.
1 |
Component | UE - Networking |
---|---|
Affects Versions | 5.1 |
Target Fix | 5.6 |
Created | Nov 15, 2022 |
---|---|
Updated | Oct 25, 2024 |