Overview - Private Chat - (Unreal Engine module)
Last updated on November 26, 2024
Introduction
In-game chat is important for player social interaction, and private chat can allow players to form deeper bonds. This module shows you how to add private chat to Byte Wars so you can allow players to talk with others directly.
Prerequisites
To complete this module, you will need:
To have completed the following module:
The Byte Wars
tutorialmodules
branch checked out in your local Byte Wars Unreal project repository.To force enable this module by adding the following code to the
Config/DefaultEngine.ini
file:[AccelByteTutorialModules]
+ForcedEnabledModules=TutorialModule:PRIVATECHAT
...
Learning objectives
At the end of this module, you will know how to implement:
- Sending and receiving private messages.
Preview
At the end of this module, your project will look like the image below:
Private chat menu
LogPrivateChat: Log: UPrivateChatSubsystem_Starter::OnSendPrivateChatComplete Success to send chat message on Room <ROOM_ID>
LogPrivateChat: Log: UPrivateChatSubsystem_Starter::OnPrivateChatMessageReceived Received private chat message from <SENDER>: <MESSAGE>