博客
关于我
UE4给flash发送消息
阅读量:337 次
发布时间:2019-03-04

本文共 563 字,大约阅读时间需要 1 分钟。

 

一、目的

1、想知道:UE4给flash发送消息

 

二、参考

1、MFC和Flash交互-and库

  • 总结:这个是MFC和Flash交互,使用的是and库,所有UE4中也是可以使用的。

 

1、UE4 C++ 与蓝图的相互调用

  • 总结:失败

 

1、

  • 总结:成功

 

三、操作

1、

public:	//发送消息给flash	UFUNCTION(BlueprintCallable, Category = "flash")		void SetSingal2flash(FString _string , int _e , bool _bool );

 

void AMyHUD::SetSingal2flash(FString _string, int _e, bool _bool){	//FString转换为string	std::string MyStdString(TCHAR_TO_UTF8(*_string));	//string转换为char *	const char * c = MyStdString.c_str();	//传递给flash	FastFlashArg argv[3] = { c ,_e,_bool};	FastFlashCallFunction(pFlash, "GetUE4Singal", argv,3);}

转载地址:http://mksq.baihongyu.com/

你可能感兴趣的文章
Node.js的交互式解释器(REPL)
查看>>
Node.js的循环与异步问题
查看>>
Node.js高级编程:用Javascript构建可伸缩应用(1)1.1 介绍和安装-安装Node
查看>>
nodejs + socket.io 同时使用http 和 https
查看>>
NodeJS @kubernetes/client-node连接到kubernetes集群的方法
查看>>
NodeJS API简介
查看>>
nodejs Error: request entity too large解决方案
查看>>
Nodejs express 获取url参数,post参数的三种方式
查看>>
nodejs http小爬虫
查看>>
nodejs libararies
查看>>
vue3+element-plus 项目中 el-switch 刷新后自动触发change?坑就藏在这里!
查看>>
nodejs npm常用命令
查看>>
nodejs npm常用命令
查看>>
Nodejs process.nextTick() 使用详解
查看>>