TextChatMessageProperties

顯示已棄用項目

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡

TextChatService.OnIncomingMessageTextChannel.OnIncomingMessage 中定義的回調中返回過載 TextChatMessage 屬性時。這可以用來自訂訊息的外觀標籤 富文本 標籤。


local TextChatService = game:GetService("TextChatService")
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
-- 派生聊天訊息特性
local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()
-- 變更訊息顏色
properties.TextColor3 = Color3.fromRGB(255, 121, 121)
-- 設置聊天窗口訊息屬性
message.ChatWindowMessageProperties = properties
return properties
end

屬性

PrefixText

平行讀取

要覆寫的 TextChatMessage.PrefixText

Text

平行讀取

要覆寫的 TextChatMessage.Text

Translation

平行讀取

要覆覆寫的 TextChatMessage.Translation 代表 自動翻譯 和過濾文字訊息,根據玩家的本地化設定。

方法

活動