API ReferenceSandbox.Platform
Chatclass
Platform-level text chat system. Provides an API for sending and receiving chat messages to users.
object→Chat
Methods2
Showing 2 methods
public static void AddText(string message)
Add a notification to the chat. This is local-only and has no sender.
| Parameter | Type | Description |
|---|---|---|
| message | string | — |
Returns:
void—public static void Say(string message)
Says a message in chat. This will be sent to the host, validated, then filtered to clients.
| Parameter | Type | Description |
|---|---|---|
| message | string | — |
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public static bool Sandbox.Platform.Chat.Enabled { get; set; }
Whether chat is enabled for the current game.
Returns:
bool—public static int Sandbox.Platform.Chat.MaxMessageLength { get; set; }
Maximum length of a single chat message.
Returns:
int—public static bool Sandbox.Platform.Chat.ShowUI { get; set; }
Whether the built-in chat UI overlay should be shown.
Returns:
bool—No results match this filter.