배우기
엔진 클래스
GetTextBoundsParams
복제되지 않음

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


코드 샘플
텍스트 크기 측정
local TextService = game:GetService("TextService")
-- 매개변수 선언
local params = Instance.new("GetTextBoundsParams")
params.Text = "안녕 세상!"
params.Font = Font.new("rbxasset://fonts/families/GrenzeGotisch.json", Enum.FontWeight.Thin)
params.Size = 20
params.Width = 200
local success, bounds = pcall(function()
return TextService:GetTextBoundsAsync(params)
end)
if success then
print(bounds)
end

API 참조
속성
Font
병렬 읽기
기능: UI
GetTextBoundsParams.Font:Font

RichText
병렬 읽기
기능: UI
GetTextBoundsParams.RichText:boolean

Size
병렬 읽기
기능: UI
GetTextBoundsParams.Size:number

Text
병렬 읽기
기능: UI
GetTextBoundsParams.Text:string

Width
병렬 읽기
기능: UI
GetTextBoundsParams.Width:number

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