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

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

一、目的

了解如何在UE4中让Flash接收消息。


二、参考

  • MFC和Flash交互及库的使用

    可以使用and库,在UE4中同样适用。

  • UE4 C++与Blueprint调用

    尝试实现调用失败,后续进行优化。

  • 成功案例

    通过代码实现成功。


  • 三、操作

  • 实现UE4与Flash的消息传递

    void AMyHUD::SetSingal2flash(FString _string, int _e, bool _bool) {    // 将FString转换为标准C++字符串    std::string MyStdString(TCHAR_TO_UTF8(*_string));    // 将字符串转换为const char*类型    const char* c = MyStdString.c_str();    // 预定义Flash函数参数    FastFlashArg argv[3] = { c, _e, _bool };    // 调用Flash函数    FastFlashCallFunction(pFlash, "GetUE4Singal", argv, 3);}
  • 优化代码结构

    通过添加注释和代码块使代码更易读。


  • 四、总结

    通过以上方法,成功实现了UE4与Flash之间的消息传递功能。

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

    你可能感兴趣的文章
    PowerPC-object与elf中的符号引用
    查看>>
    QFileSystemModel
    查看>>
    Powershell DSC 5.0 - 参数,证书加密账号,以及安装顺序
    查看>>
    PowerShell 批量签入SharePoint Document Library中的文件
    查看>>
    Powershell 自定义对象小技巧
    查看>>
    pytorch从预训练权重加载完全相同的层
    查看>>
    PowerShell~发布你的mvc网站
    查看>>
    PowerShell使用详解
    查看>>
    Powershell制作Windows安装U盘
    查看>>
    powershell命令
    查看>>
    Powershell如何查看本地公网IP
    查看>>
    pytorch从csv加载自定义数据模板
    查看>>
    powershell对txt文件的服务器进行ping操作
    查看>>
    powershell常用
    查看>>
    PowerShell操作XML遇到的问题
    查看>>
    PowerShell攻击工具Empire实战
    查看>>
    PowerShell攻击工具Nishang实战
    查看>>
    PowerShell攻击工具PowerSploit实战
    查看>>
    Powershell管理系列(四)Lync server 2013 批量启用语音及分配分机号
    查看>>
    PowerShell脚本运行完 不要马上关闭用什么命令可以停留窗口窗口
    查看>>