Unreal Engine 4 游戏内截图

Unreal Engine 4 In-game Screenshot

有没有办法在游戏中时在 UE4 中截取屏幕截图并将其保存在某个地方,以便我可以再次将其用作图像或其他东西?

有一个 HighResShot 解决方案,但是将它保存在编辑器范围之外的某个地方(您无法通过编程方式访问它),是否有另一种方法可以让我在游戏中访问它?

我建议使用 HighResShot 截取屏幕截图。正如您提到的,它将此保存在引擎范围之外,在 "saved" 文件夹中。 (在打包构建中,保存的内容在用户的 appdata 中。)您实际上可以使用 ProjectSavedDir() 获取此保存目录,其中 returns。 https://docs.unrealengine.com/en-US/API/Runtime/Core/Misc/FPaths/index.html

它是 C++,但您可以很容易地将它公开给蓝图。您可以获得 ProjectSavedDir()/Screenshots 目录并在游戏中加载图像。为此,我推荐 Ramas 插件 (https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/4014-39-rama-s-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required?3851-(39)-Rama-s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required=)