> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OnChatMessageReceived

> Party Unity SDK の PlayFabMultiplayerManager 上の OnChatMessageReceived イベントのリファレンス。ローカル プレイヤーがチャット メッセージを受信したときに発生します。

チャット メッセージが受信されたときに発生します。

## 引数

### sender (object)

イベントを発生させたクラスです。

### from (PlayFabPlayer)

メッセージの送信元のプレイヤーです。

### message (string)

メッセージの内容です。

### type (ChatMessageType)

メッセージのタイプを指定するパラメーターです。


## Related topics

- [クラス PlayFabMultiplayerManager](/ja-jp/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/index.md)
- [Party Unity plugin quickstart](/ja-jp/services/playfab/multiplayer/networking/party-unity-plugin-quickstart.md)
- [game_chat_text_chat_received_state_change](/ja-jp/reference/chat/gamechat2/structs/game_chat_text_chat_received_state_change.md)
- [game_chat_transcribed_chat_received_state_change](/ja-jp/reference/chat/gamechat2/structs/game_chat_transcribed_chat_received_state_change.md)
- [PartyChatTextReceivedOptions](/ja-jp/services/playfab/multiplayer/networking/reference/enums/partychattextreceivedoptions.md)
