TextChatMessageProperties
사용되지 않는 항목 표시
*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.
에서 반환된 속성을 재정의하여 콜백에서 정의된 또는 에서 반환된 속성을 재정의합니다.이를 사용하여 메시지의 모양을 풍부한 텍스트 태그로 사용자 지정할 수 있습니다.
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