虚幻引擎4游戏截图 [英] Unreal Engine 4 In-game Screenshot

查看:127
本文介绍了虚幻引擎4游戏截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在游戏中在UE4中拍摄屏幕截图并将其保存在某个地方,以便我可以再次将其用作图像或其他东西?

Is there a way to take a screenshot in UE4 while in-game and save it somewhere so that I can use it again as an image or something?

有一个HighResShot解决方案,但是可以将其保存在编辑器范围之外的位置(您无法以编程方式访问它),还有另一种方法可以使我在游戏中访问它吗?

There is a HighResShot solution, but that saves it somewhere outside the range of the editor (you cannot reach it programmatically), is there another way of doing it, that allows me to access it in-game?

推荐答案

我建议使用HighResShot截屏.正如您提到的,它会将其保存在引擎范围之外的"saved"文件夹中. (在打包的版本中,保存的内容位于用户的appdata中.)您实际上可以使用ProjectSavedDir()来获取此内容,它返回此保存的目录. https://docs.unrealengine.com/zh-CN/API/Runtime/Core/Misc/FPaths/index.html

I would recommend using HighResShot for taking the screenshots. As you mention, it saves this outside the range of the engine, in the "saved" folder. (In packaged builds, the saved content is in the user's appdata.) You can actually get this with ProjectSavedDir(), which returns this saved directory. https://docs.unrealengine.com/en-US/API/Runtime/Core/Misc/FPaths/index.html

它是C ++,但是您可以很容易地将其公开给Blueprints.您可以获取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-额外的蓝图节点供您使用,即插即用,无需C = )

It's C++, but you can expose this to Blueprints fairly easily. You can get the ProjectSavedDir()/Screenshots directory and load the images in-game. For doing this, I recommend the Ramas plugin (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=)

这篇关于虚幻引擎4游戏截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆