배우기
엔진 클래스
ChatInputBarConfiguration
만들 수 없음

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


코드 샘플
전체 채팅 UI 경계 가져오기
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local windowConfig = TextChatService.ChatWindowConfiguration
local inputBarConfig = TextChatService.ChatInputBarConfiguration
local function getTotalChatBounds()
local windowPos = windowConfig.AbsolutePosition
local windowSize = windowConfig.AbsoluteSize
local inputPos = inputBarConfig.AbsolutePosition
local inputSize = inputBarConfig.AbsoluteSize
-- 두 개의 직사각형의 합집합을 계산하여 전체 채팅 UI 경계를 구합니다.
-- 보고된 값은 채팅 창의 상단 및 하단 가장자리의 장식 bevel을 포함하지 않습니다.
local topLeft = Vector2.new(
math.min(windowPos.X, inputPos.X),
math.min(windowPos.Y, inputPos.Y)
)
local bottomRight = Vector2.new(
math.max(windowPos.X + windowSize.X, inputPos.X + inputSize.X),
math.max(windowPos.Y + windowSize.Y, inputPos.Y + inputSize.Y)
)
return topLeft, bottomRight - topLeft
end
-- 채팅 UI가 초기화되고 절대 값을 보고할 때까지 기다립니다.
task.wait(2)
local position, size = getTotalChatBounds()
print("전체 채팅 UI 위치:", position)
print("전체 채팅 UI 크기:", size)
-- 경계를 시각적으로 확인하기 위해 반투명 프레임을 겹쳐 놓습니다.
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ChatBoundsDebug"
screenGui.DisplayOrder = 100
screenGui.Parent = playerGui
local frame = Instance.new("Frame")
frame.Position = UDim2.fromOffset(position.X, position.Y)
frame.Size = UDim2.fromOffset(size.X, size.Y)
frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
frame.BackgroundTransparency = 0.5
frame.BorderSizePixel = 2
frame.BorderColor3 = Color3.fromRGB(255, 0, 0)
frame.Parent = screenGui

API 참조
속성
AbsolutePosition
읽기 전용
복제되지 않음
기능: Chat
ChatInputBarConfiguration.AbsolutePosition:Vector2

AbsoluteSize
읽기 전용
복제되지 않음
기능: Chat
ChatInputBarConfiguration.AbsoluteSize:Vector2

AutocompleteEnabled
병렬 읽기
기능: Chat
ChatInputBarConfiguration.AutocompleteEnabled:boolean

BackgroundColor3
병렬 읽기
기능: Chat
ChatInputBarConfiguration.BackgroundColor3:Color3

BackgroundTransparency
병렬 읽기
기능: Chat
ChatInputBarConfiguration.BackgroundTransparency:number

Enabled
병렬 읽기
기능: Chat
ChatInputBarConfiguration.Enabled:boolean

FontFace
병렬 읽기
기능: Chat
ChatInputBarConfiguration.FontFace:Font

IsFocused
읽기 전용
복제되지 않음
기능: Chat
ChatInputBarConfiguration.IsFocused:boolean
코드 샘플
타이핑 인디케이터 버블
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local ChatInputBarConfiguration = TextChatService:FindFirstChildOfClass("ChatInputBarConfiguration")
local BubbleChatConfiguration = TextChatService:FindFirstChildOfClass("BubbleChatConfiguration")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
-- TextLabel 설정
local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.fromScale(1, 1)
textLabel.Text = ". . ."
textLabel.BackgroundColor3 = BubbleChatConfiguration.BackgroundColor3
textLabel.BorderColor3 = BubbleChatConfiguration.BackgroundColor3
textLabel.BackgroundTransparency = BubbleChatConfiguration.BackgroundTransparency
textLabel.TextColor3 = BubbleChatConfiguration.TextColor3
textLabel.FontFace = BubbleChatConfiguration.FontFace
textLabel.TextSize = BubbleChatConfiguration.TextSize
-- 텍스트 라벨에 둥근 모서리를 위해 UICorner 부모 설정
local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 12)
uiCorner.Parent = textLabel
-- Billboard 설정
local typingIndicatorBillboard = Instance.new("BillboardGui")
typingIndicatorBillboard.Enabled = false
typingIndicatorBillboard.Size = UDim2.fromScale(1, 1)
typingIndicatorBillboard.StudsOffsetWorldSpace = Vector3.new(-0, 4, 0)
typingIndicatorBillboard.Adornee = Character
textLabel.Parent = typingIndicatorBillboard
typingIndicatorBillboard.Parent = LocalPlayer:FindFirstChildOfClass("PlayerGui")
ChatInputBarConfiguration:GetPropertyChangedSignal("IsFocused"):Connect(function()
-- 입력 바에 포커스가 있을 때 타이핑 인디케이터를 활성화하고 그렇지 않을 때 비활성화
typingIndicatorBillboard.Enabled = ChatInputBarConfiguration.IsFocused
end)

KeyboardKeyCode
병렬 읽기
기능: Chat
ChatInputBarConfiguration.KeyboardKeyCode:Enum.KeyCode

PlaceholderColor3
병렬 읽기
기능: Chat
ChatInputBarConfiguration.PlaceholderColor3:Color3

TargetTextChannel
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TargetTextChannel:TextChannel

TextBox
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TextBox:TextBox

TextColor3
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TextColor3:Color3

TextSize
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TextSize:number

TextStrokeColor3
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TextStrokeColor3:Color3

TextStrokeTransparency
병렬 읽기
기능: Chat
ChatInputBarConfiguration.TextStrokeTransparency:number

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.