Skip to content

Get Sansar

Script API

ChatData

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation Inherits Sansar.Script.EventData

Subscribe to receive events on chat messages from the system, users or scripts.

public class ChatData : Sansar.Script.EventData

Members at a glance

KindMembers
PropertiesChannel · Message · Source · SourceId · SourceScriptId
MethodsToString

Properties

Channel

public int Channel { get; }

int channel which the chat occurs on.

Message

public string Message { get; }

string message of the chat event.

Source

public string Source { get; }

string source of the chat: system, user or script.

SourceId

public Sansar.Script.SessionId SourceId { get; }

Sansar.Script.SessionId id of the chat source. May be SessionId.Invalid if the source is not an agent.

SourceScriptId

public Sansar.Script.ScriptId SourceScriptId { get; }

Sansar.Script.ScriptId id of the chat source. May be ScriptId.Invalid if the source is not a script.

Methods

ToString

public override string ToString()

A string representation of this object.

Returns: string — A string representation of this object.

Remarks

The format of this string may change between releases.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.