-
|
你好,请问这个工具是根据什么来查找本地的unreal 引擎的,我发现我本地有些unreal引擎在安装的时候没有被找到。 |
Beta Was this translation helpful? Give feedback.
Answered by
Ghost2020
Jun 22, 2025
Replies: 2 comments 1 reply
-
|
UE提供了一个接口可以查询所有的引擎安装位置 static void GetAllEngineFolder()
{
TMap<FString, FString> EngineInstallations;
#ifdef DESKTOPPLATFORM_API
auto DeskPlatformModule = FDesktopPlatformModule::Get();
DeskPlatformModule->EnumerateEngineInstallations(EngineInstallations);
for (const auto& Iter : EngineInstallations)
{
// DoSomething
FEngineVersion EngineVersion;
DeskPlatformModule->TryGetEngineVersion(Iter.Value, EngineVersion);
const FString VersionString = EngineVersion.ToString();
}
#endif
}具体使用案例可以参考项目下面XiaoInstall.h GetAllEngineFolder 函数 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ghost2020
-
|
无法被找到的引擎是公办引擎还是源码的?引擎版本是多少呢?如果是源码引擎是否有做过裁剪? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UE提供了一个接口可以查询所有的引擎安装位置
调用方式如下:
具体使用案例可以参考项目下面XiaoInstall.h GetAllEngineFolder 函数