博客
关于我
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/

你可能感兴趣的文章
Mysql中使用存储过程插入decimal和时间数据递增的模拟数据
查看>>
MySql中关于geometry类型的数据_空的时候如何插入处理_需用null_空字符串插入会报错_Cannot get geometry object from dat---MySql工作笔记003
查看>>
mysql中出现Incorrect DECIMAL value: '0' for column '' at row -1错误解决方案
查看>>
mysql中出现Unit mysql.service could not be found 的解决方法
查看>>
mysql中出现update-alternatives: 错误: 候选项路径 /etc/mysql/mysql.cnf 不存在 dpkg: 处理软件包 mysql-server-8.0的解决方法(全)
查看>>
Mysql中各类锁的机制图文详细解析(全)
查看>>