Git Product home page Git Product logo

llmunrealengine4games / gameplay-message-router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imnazake/gameplay-message-router

0.0 0.0 0.0 390 KB

A robust subsystem designed for registering and facilitating communication between unconnected gameplay objects. This system allows you to send and receive messages containing specific data through defined channels, utilizing gameplay tags.

C++ 96.80% C# 3.20%

gameplay-message-router's Introduction

Gameplay Message Router

The Gameplay Message Router is a robust subsystem designed for registering and facilitating communication between unconnected gameplay objects. This system allows you to send and receive messages containing specific data through defined channels, utilizing gameplay tags. Developed by Epic Games, Inc., this subsystem is compatible with Unreal Engine 5.0.0 or higher and currently supported on the Windows platform.

Getting Started

To integrate the Gameplay Message Router into your project, follow these simple steps:

  1. Obtain the Lyra game project from the Lyra Github Repo (requires a Github account linked to Epic Games).
  2. Copy the 'GameplayMessageRuntime' plugin from the Lyra project's plugins folder and paste it into your project's plugins folder (YourProject/Plugins/GameplayMessageRuntime).
  3. Add 'GameplayMessageRuntime' to your YourProject.Build.cs file.
  4. Regenerate your project's solution files.

How to Use

1. Set up your message structure:

Message Structure

2. Create a function to send the message:

In your class, create a function to send the message and add a gameplay tag representing the channel:

Send Message Channel Tag

Note: You can also broadcast messages directly from Blueprint using the BroadcastMessage node.

Broadcast Message

3. Test it in Blueprint:

Create a child actor class from MyActor C++ class and another actor that doesn't necessarily need to inherit from MyActor.

Actor Classes

In Actor01 Blueprint, create a sample message to send on begin play.

Actor01 Blueprint

In Actor02 Blueprint, specify a channel and select the relevant message structure to receive the message from Actor01.

Actor02 Blueprint

4. Define gameplay tags and message structures:

Define gameplay tags for sending or receiving messages on specific channels.

Gameplay Tags Gameplay Tags

Select the structure containing your message data (e.g., SampleMessage).

Message Structure

5. Test the setup:

After placing both actors in the level, the message sent from Actor01 should be displayed on Actor02 when the game begins.

Gameplay Test

Enjoy seamless communication between gameplay objects using the Gameplay Message Router!

Supported Engine Versions

5.0 or higher

Supported Platforms

  • Windows
  • Mac
  • Linux

Network Replication Support

Not Supported

gameplay-message-router's People

Contributors

imnazake avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.