Motor Sınıfı
GetTextBoundsParams
*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
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)
endAPI Referansı
Özellikler