1、让UEC++支持异常(exception)和RTTI。开启RTTI后dynamic_cast和typeid都可以使用。
bUseRTTI = true;
bEnableExceptions = true;
2、Mac平台上,重新生成项目文件:右键.uproject文件,点击Services(服务),然后点击Generate Xcode Projet(***),选择生成项目的UE版本就行。
3、Mac上,如果无法重新生成项目文件,可到引擎安装目录执行:./GenerateProjectFiles.sh -project="/Volumes/Data/Unreal Projects/DevelopmentKit/DevelopmentKit.uproject" -game
4、关于unreal engine swarm无法正常使用的一个解决方法
12:18:35: [ERROR] Channel registration failed. Reason: No such host is known
, Callstack: at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at System.Runtime.Remoting.Channels.CoreChannel.GetMachineName()
at System.Runtime.Remoting.Channels.CoreChannel.GetMachineIp()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupMachineName()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(Int32 port)
at Agent.AgentApplication.Main(String[] args) in D:\Build\++UE4+Licensee\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\Agent\AgentApplication.cs:line 133.
无法正常使用时Log下面报异常,Swarm Status里面是空的,其实这就是问题的根源,无法读取你的机器信息。可以看到无法使用时计算机名中有中文字符,如果改成全英文就可以正常使用