版权声明:作者qq:3689852,转载请保留版权 https://blog.csdn.net/qq_36409711/article/details/81811863
首先效果图
1,开启Stueam的插件
2,修改配置文件
DefaultEngine.ini
[URL]
[/Script/HardwareTargeting.HardwareTargetingSettings]
TargetedHardwareClass=Desktop
AppliedTargetedHardwareClass=Desktop
DefaultGraphicsPerformance=Maximum
AppliedDefaultGraphicsPerformance=Maximum
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName=”GameNetDriver”,DriverClassName=”OnlineSubsystemSteam.SteamNetDriver”,DriverClassNameFallback=”OnlineSubsystemUtils.IpNetDriver”)
[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20
bHasVoiceEnabled=true
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90
[Voice]
bEnabled=true
[Core.Log]
LogNet=verbose
LogOnline=verbose
LogVoice=verbose
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=”/Script/OnlineSubsystemSteam.SteamNetConnection”
DefaultGame.ini
[/Script/EngineSettings.GeneralProjectSettings]
ProjectID=E4F1217F4B36FC6F0198ECA750F66FEA
[/Script/Engine.GameSession]
bRequiresPushToTalk=false