Skip to content

An Unreal Engine (UE) plugin for receiving and processing UDP messages.

Notifications You must be signed in to change notification settings

wjake/ue-udp-receiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UE UDP Receiver Plugin

Simple Unreal Engine (UE) plugin containing an actor component which creates a UDP receiver socket for inter-communication.

Features

  • Event-driven UDP message processing
  • Send message functionality for client communication
  • Blueprint integration
  • Customizable IP, port, and buffer size

Dependencies

Plugin makes use of Networking and Sockets UE modules.

Installation

  1. Clone this repository into your Plugins/ directory:
    $ git clone https://github.com/wjake/UE-UDPReceiver.git Plugins/UDPReceiver
  2. Open your Unreal Engine project, and enable the plugin in the Plugins Manager.

Usage

Unreal Engine

  1. Add the UUDPReceiver component to your actor
  2. Configure the properties (IP, Port, etc.)
  3. Set component Auto activate in Details pane, or call StartUDPReceiver in the Event Graph
  4. Use OnMessageReceivedEvent node to handle received messages
  5. Use SendMessage node to send message to a client

alt text alt text

Client Example (Python)

  1. Import socket library dependency
import socket
  1. Define socket IP address & port number
server_address = ('127.0.0.1', 65432)
  1. Create connection to UDP socket
udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  1. Send data
udp_socket.sendto('data', server_address)
  1. Receive Message
data, server = udp_socket.recvfrom(1024)
  1. Close socket connection
udp_socket.close()

About

An Unreal Engine (UE) plugin for receiving and processing UDP messages.

Topics

Resources

Stars

Watchers

Forks