DTVideo UE录屏插件使用说明

该博客介绍了UE4游戏开发中的一款插件,该插件提供两个蓝图函数,能够方便地在游戏运行时录制并保存游戏画面为MP4视频。StartRecord函数用于开始录制,设定分辨率,而StopRecord函数用于结束录制并指定保存文件路径。文件默认保存在项目目录的VideoCaptures文件夹,也可设置自定义路径。这是一个异步操作,文件保存完成后才会执行后续节点。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本插件可以在蓝图中简单调用即可时时录制游戏画面并保存为MP4文件。

插件只有2个蓝图函数开放使用,这两个函数已经可以满足使用需求。

This plug-in can be simply called in the blueprint to record the game screen from time to time and save it as an MP4 file.

The plug-in has only two blueprint functions open to use, and these two functions can already meet the needs of use.

1. StartRecord    分组 DT Video

这是开始录制函数,参数[ Width ]和 [ Height ]为需要录制的分辨率,如果参数为0,就默认就是当前的运行分辨率

1. StartRecord     Category DT Video

This is the function to start recording. The parameters [Width] and [Height] are the resolution to be recorded. If the parameter is 0, the default is the current operating resolution

2. StopRecord     分组 DT Video

这是停止录制并保存的函数,参数[ Name ]为保存文件路径和文件名。

如果只是文件名,则文件保存在 项目名\Saved\VideoCaptures 这个目录中,如 “123.mp4”。

如果是绝对硬盘路径加名字,则保存在相应的文件中,如 “C:\\123.mp4”。

如果为空,则会已当前时间戳为文件名,保存在VideoCaptures文件里面。

这是一个异步函数,在文件保存以后才会执行 Success 和 Failure 节点。

2. StopRecord     Category DT Video

This is a function to stop recording and save. The parameter [Name] is the path and file name of the saved file.

If it is just a file name, the file is saved in the directory of project name\Saved\VideoCaptures, such as "123.mp4".

If it is an absolute hard disk path and name, it will be saved in the corresponding file, such as "C:\\123.mp4".

If it is empty, the current timestamp will be the file name, and it will be saved in the VideoCaptures file.

This is an asynchronous function, and the Success and Failure nodes will not be executed until the file is saved.

插件代码下载地址

DTVideo: UE4 录像插件 (gitee.com)

评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值