Unreal Engine虚幻游戏引擎素材资源 Unreal Engine Marketplace –TCP Blueprint Plugin TCP蓝图插件
这个插件通过提供易于使用的Blueprint节点,方便了与TCP服务器的连接。
使用此插件进行原型设计,并作为实现您自己的自定义TCP系统的参考。
该插件旨在提供与外部服务器连接的功能,帮助您通过使用开源项目或商业产品扩展UE4。
请注意,这个插件只公开用于创建客户端部分的功能,而不是用于创建服务器的功能。尽管我们包含了一些python服务器脚本和一个TCP/WEBSOCKET实用程序服务器作为参考。
技术细节
模块:
•Bluet(运行时)
特征:
•快速创建TCP客户端并实现自定义数据读取逻辑
•连接/断开
•事件:onConnect/onDisconnect/onConnectionFail
•接收和发送:int32、浮点、字符串
•直接在blueprint内部定义自定义IP(v4)和端口
•创建多个TCP连接
•无需编写c++代码,您可以只使用blueprint的
•包含完整的插件源代码
示例项目:motion.mx/ue4/tcpexample/tcpexample.zip文件
源代码为c的UE4插件++
创建套接字TCP连接并侦听状态。
实现仅作为客户端(而不是服务器)运行的功能。
使用windows 10进行测试。
更新03/01/2019
在蓝图中添加了易于使用的“bp®EasyStringTCP”,只需拖动到您的视口,并使用其方法“SendStringToServer”发送字符串,使用“onTcpStringReceived”事件来侦听传入的字符串。
This plugin facilitates the connection to TCP server’s by providing easy to use Blueprint nodes.
Use this plugin for prototyping and as a reference to implement your own custom TCP system.
The plugin it’s intended to provide functionality to connect with external servers, helping you to extend UE4 by using open source projects or commercial products.
Take note that this plugin only exposes functionality to create the client part and not for creating server. Although we include some python server scripts and a TCP /WEBSOCKET utility server only as a reference.
技术细节
Modules:
• BluNet (Runtime)
Features:
• quickly create a TCP client and implement your custom data reading logic
• connect /disconnect
• events: onConnect/onDisconnect/onConnectionFail
• receive and send: int32,float,string
• define your custom IP (v4) and port directly inside blueprint’s
• create more than one TCP connections
• no need to write c++ code, you can create a full client using only blueprint’s
• full plugin source code is included
Example Project: motion.mx/ue4/tcpexample/TCPexample.zip
UE4 plugin with sources c++
Creates socket TCP connections and listens to states.
Implements functionality to operate as client only (not as a server).
Tested with windows 10.
UPDATE 03/01/2019
Added easy to use “bp_EasyStringTCP” to the blueprint, just drag to your viewport and use its method “SendStringToServer” to send strings and the “onTcpStringReceived” event to listen for incoming strings.

隐藏内容

此处内容需要权限查看

  • 普通5金币
  • 会员免费