当前位置:网站首页>UE4 obtains the complete map path according to the map name
UE4 obtains the complete map path according to the map name
2022-04-22 02:35:00 【Hongmeng Laodao】
Need here build.cs Add AssetRegistry The corresponding header file has been
bool UMyBlueprintFunctionLibrary::GetMapFullName(const FString& MapName, FString& FullMapName)
{
IAssetRegistry& AssetRegistry = FModuleManager::Get().LoadModuleChecked<FAssetRegistryModule>("AssetRegistry").Get();
bool result = false;
if (!AssetRegistry.IsLoadingAssets())
{
TArray<FAssetData> MapList;
if (AssetRegistry.GetAssetsByClass(UWorld::StaticClass()->GetFName(), /*out*/ MapList))
{
FName TargetTestName(*MapName);
for (const FAssetData& MapAsset : MapList)
{
if (MapAsset.AssetName == TargetTestName)
{
FullMapName = MapAsset.PackageName.ToString();
result = true;
break;
}
}
}
}
return result;
}
版权声明
本文为[Hongmeng Laodao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211422280723.html
边栏推荐
- Solve the problem that the search box of select2 in modal is invalid
- 金融信息安全实训——22/4/19(上)
- 语义分割之FCN网络详解 全卷积网络
- Unity Game Optimization - Third Edition 阅读笔记 Chapter 1 分析性能问题
- MySQL execution process
- 创建双向链表(详解)
- 8种MySQL常见SQL错误用法详解
- softmax运算
- Interview question: use the program to realize the alternating printing of odd and even numbers from 0 to 100 by two threads
- Alibaba P9 explains high concurrency in detail, and shows you how Taobao can resist large-scale second kill activities such as double 11
猜你喜欢

金融信息安全实训——22/4/19(上)
![[论文阅读] Active Class Incremental Learning for Imbalanced Datasets](/img/20/ecfffcdeed6813a6bdb703794a2607.png)
[论文阅读] Active Class Incremental Learning for Imbalanced Datasets

Explain various cloud computing models in detail. How can enterprises use each model to improve business productivity?

《k3s 源码解析2 ----master逻辑源码分析》

Notes: Sword finger offer 04 Search in two-dimensional array -- an error report

吴恩达机器学习作业——逻辑回归

Shit, someone poisoned my code comments?

Pychar executes multiple script files at the same time

信息安全概述

AI application theory - Smart farm (cattle farm without monitoring)
随机推荐
云服务器如何连接 AD 域或 LDAP 用户源
软件测试·坏味道
【项目】小帽外卖(七)
What are the pitfalls of risk control product quota?
金融信息安全实训——22/4/19(上)
[TIANTI competition] l2-040 Zhezhi game (25 points (s)) (simulation)
Golang 1.8 generic testing
unapp封装一个加载动画
头歌 DHCP服务配置
[Xiao Yang takes you to play with C language] circular structure (detailed explanation)
Line feed in string value when sqlserver parses JSON
Unity Game Optimization - Third Edition 阅读笔记 Chapter 1 分析性能问题
Digital twin tank warfare, technology promotes battlefield information digitization
(进阶用法) C语言字符串函数
Explain the mathematical process of neural network like a pile of LEGO
刷题计划——动态规划dynamic programming(二)
Development of smart party building system and construction of information management platform for smart team members
Application and principle analysis of ThreadLocal
[➾ leetcode Sword means offer 12. Path in Matrix (simple)]
CTF wiki local construction record