Text Chat

Text chat between the web and in event experience

Beta Quality - Customers are encouraged to test and use Beta features in their experiences, but may still require some support

Overview

The ability to chat on web and in game, including:

  • Chat from Web to Unreal and back

  • Works on Desktop and Mobile*

  • Text appears in game above the head

  • Ability to hide and show the widget, and custom sizing

  • User name and profile image appending to the message

The in-and-out-experience chat is backed by PubNub. For battle-tested, in-experience only chat, see Experience Only Chat.

* Mobile is currently only supported via the old chat UI (Cloud Chat). See Adding Mobile support to continue use of this version of the text chat for desktop

Integration

  1. Make sure you have a safe internal launch context id set up for your editor users.

  2. Configure the variable Social.Chat.Editor.LaunchContextId in deployment.json with this value (see below)

How to enable

  1. Enable TextChat.UseCloudChat in game.json.

  2. Make sure your in-game HUD is set up to use the new chat system

The following settings in game.json influence the Text Chat feature:

How to enable Text chat in Editor

Create a deployment.override.json in your project live config directory (Config/LiveConfig/Overrides) and add the following, replacing the LaunchContextId with a launch context in your project. This should ideally be a persistent launch context so it will always be available

This uses a Launch Context id, not a World Id. This will likely be updated in the near future.

{ 
    "Social": { 
        "Chat": { 
            "Editor": { 
                "LaunchContextSource": "LiveConfigChatLaunchContext", 
                "LaunchContextId": [REPLACE WITH LAUNCH CONTEXT ID] 
            }
        }
    }
}

The following deployment.json influence the Text Chat feature:

Adding Chat to your HUD

Add WBP_M2_TextChat to your HUD and ensure it is stretched across the whole screen.

Adding Mobile Support

WBP_M2_TextChat does not yet support mobile platforms. If your HUD is or derives from WBP_TH_HUD then your good to go. Otherwise follow the below steps:

Use a widget switcher to switch between WBP_M2_TextChat and WBP_TextChatWindow_Mobile with the following code to allow it to automatically revert to the old UI for mobile devices.

  1. On Bootflow finished, add a handle to get live config updates.

  1. Create a function called Update Live Config and add the following:

Full Live Config Setting List

Settings marked (LEGACY) may be removed in a future update

Last updated