本插件可以在蓝图中简单调用即可时时录制游戏画面并保存为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.
插件代码下载地址