Learn
Motor Sınıfı
GetTextBoundsParams
Çoğaltılmamış

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler
Kod Örnekleri
Metin Boyutunu Ölçme
local TextService = game:GetService("TextService")
-- Parametreleri tanımlayın
local params = Instance.new("GetTextBoundsParams")
params.Text = "Merhaba dünya!"
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 Referansı
Özellikler
Font
Paralel oku
Capabilities: UI
GetTextBoundsParams.Font:Font

RichText
Paralel oku
Capabilities: UI
GetTextBoundsParams.RichText:boolean

Size
Paralel oku
Capabilities: UI
GetTextBoundsParams.Size:number

Text
Paralel oku
Capabilities: UI
GetTextBoundsParams.Text:string

Width
Paralel oku
Capabilities: UI
GetTextBoundsParams.Width:number

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.