Steam 网络联机配置代码

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

或者
下载稍后发布到CSDN共享资源里面,并加如下代码片
defaultEngin.int内的代码:

【/Script/Engine.GameEngine】
!NetDriverDefinitions=ClearArray 
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver") 

【OnlineSubsystem】
DefaultPlatformService=Steam 
PollingIntervalInMs=20

【OnlineSubsystemSteam】
bEnabled=true 
SteamDevAppId=480 
GameServerQueryPort=27015
bRelaunchInSteam=false 
GameVersion=1.0.0.0 
bVACEnabled=1 
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90

【/Script/OnlineSubsystemSteam.SteamNetDriver】
NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"

你可能感兴趣的:(Steam 网络联机配置代码)