Also I don’t think [/Script/Engine.GameEngine] is the correct section for the DefaultEngine.ini (although the documentation says otherwise Online Subsystem Steam | Unreal Engine 4.27 Documentation). In my project the net driver definitions config wouldn’t be applied unless I changed the section to [/Script/Engine.Engine]. Maybe they used to be in the GameEngine class but have been moved to the Engine class at some point but the documentation wasn’t updated to reflect that.
[/Script/Engine.Engine]
; we first need to remove the old GameNetDriver definition inherited from the BaseEngine.ini (must be an exact match!)
-NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemUtils.IpNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
; now we can add the GameNetDriver using SteamNetDriver
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
Thank you for help.
I checked the uproject file, the online subsystem steam is do enabled.
I did not change the Engine Section, but after rebuilding, now the errors are gone.
I don’t know what is the reason for this issue, maybe It is caused by compiling.