惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
Tenable Blog
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
S
Schneier on Security
Scott Helme
Scott Helme
S
Securelist
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
IT之家
IT之家
V
V2EX
F
Fortinet All Blogs
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
博客园_首页
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost

博客园 - wengnet

UE4 C++ 输出日志 UE4 C++ 日志输出 基于vue-cli快速构建 CentOS7 使用YUM 安装JDK node-sass 安装报错解决办法 禁止Steam VR随着虚幻4自动启动 SharePoint 2013 对话框 目标主体名称不正确,无法生成 SSPI 上下文。 开发SharePoint 自定义WebService 的小工具 提高SharePoint2013服务器性能 SharePoint 2013 和 SharePoint 2010 功能对比 SharePoint 的PowerShell命令之获取所有网站模版 SharePoint Survey – Custom Action 制作X509证书 DocumentSet 操作代码(二) SharePoint2010 文档集操作-创建 自定义SharePoint2010文档库的上传页面 Windows Server 无法启用 .Net Framework3.5的问题 JQuery 删除SharePoint菜单
UE4 获取SurfaceType
wengnet · 2021-01-20 · via 博客园 - wengnet

获取SurfaceType的两种方法(我所知道的)

  1. EPhysicalSurface Surface = UPhysicalMaterial::DetermineSurfaceType(Hit.PhysMaterial.Get());
    
  2. EPhysicalSurface Surface =UGameplayStatics::GetSurfaceType(Hit);
    

第一种,在4.26版本中报如下错误:

无法解析的外部符号 "__declspec(dllimport) public: static enum EPhysicalSurface __cdecl UPhysicalMaterial::DetermineSurfaceType(class UPhysicalMaterial const *)" (__imp_?DetermineSurfaceType@UPhysicalMaterial@@SA?AW4EPhysicalSurface@@PEBV1@@Z)

不知道如何解决,记录一下;

已经找到解决办法,修改 ModuleRules文件,如下:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore","PHYSICSCORE" });

  增加了:PHYSICSCORE

第二种,为替代方法,也能正常运行。

麻烦转载的,请注明出处,谢谢。