当前位置:网站首页>Unreal中通过FMonitoredProcess启动其他独立程序
Unreal中通过FMonitoredProcess启动其他独立程序
2022-07-23 10:13:00 【桃溪小小生】
我们在Unreal项目中编写一些工具代码时,很可能要调用一些第三方的程序,这种需求就可以使用FMonitoredProcess解决。
使用方式
FString FullExePath = exe的路径
FString ExeParam = 要传给exe的参数
TSharedptr<FMonitoredProcess> NewProcess= MakeShareable(new FMonitoredProcess(FullExePath , ExeParam , true));
NewProcess->OnOutput().BindLambda([&](const FString& Text) {
第三方程序的输出会被这里捕获
if(Text == TEXT("Step1"))
{
第一步完成了
}
});
//启动程序
NewProcess->Launch();第三方程序可以通过Output来触发Unreal工具的一些行为。
边栏推荐
- 头部姿态估计原理及可视化_loveliuzz的博客-程序员宅基地_头部姿态估计
- Linux scheduled database backup script
- Subsequence --- edit distance
- MySQL unique index has no duplicate value, and the error is repeated
- 读写锁ReadWriteLock还是不够快?再试试S…
- Redis | 非常重要的中间件
- 【无标题】测试【无标题】测试
- 直播课堂系统03补充-model类及实体
- 基于matlab的BOC调制解调的同步性能仿真,输出跟踪曲线以及不同超前滞后码距下的鉴别曲线
- Getting started with Prometheus (III)
猜你喜欢

初识C语言函数

What methods are called behind the use of objects

Supervisor installation and use

如何加速矩阵乘法——优化GEMM (CPU单线程篇)

智头条:智装论坛将于8月4日举行,2022全屋智能销售将破100亿

动态规划-力扣

The pit trodden by real people tells you to avoid the 10 mistakes often made in automated testing

Matlab simulation of Turbo code error rate performance

基於matlab的CBOC信號調制解調仿真,輸出其相關性,功率譜以及頻偏跟踪

@FeignClient使用詳細教程(圖解)
随机推荐
Leetcode-227-basic calculator||
安全合理用电 收获清凉一“夏”
mysql函数汇总之数学函数
初识C语言函数
leetcode: 17. 电话号码的字母组合
Openharmony South learning notes - hi3861+hc-sr04 ultrasonic testing
Prometheus入门使用(三)
动态规划-力扣
Redis布隆过滤器
@FeignClient使用详细教程(图解)
C# 线程锁和单多线程简单使用
Detailed tutorial of typora drawing bed configuration
The accuracy of digital addition
智头条:智装论坛将于8月4日举行,2022全屋智能销售将破100亿
基于PSO优化的多目标最优值求解matlab仿真
[software testing] how to sort out your testing business
Regular expression common syntax parsing
String function of MySQL function summary
338. Bit count
@FeignClient使用詳細教程(圖解)