Learn
Motor Sınıfı
ReflectionService
Oluşturulamaz
Hizmet
Ç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
Yöntemler
GetClass(className: string,filter: Dictionary):ReflectedClass?
GetClasses(filter: Dictionary):{ReflectedClass}
GetEventsOfClass(className: string,filter: Dictionary):{ReflectedEvent}
GetMethodsOfClass(className: string,filter: Dictionary):{ReflectedMethod}
GetPropertiesOfClass(className: string,filter: Dictionary):{ReflectedProperty}
Devralınan Üyeler
Kod Örnekleri
Yansıma Servisi Genel Bakış
local ReflectionService = game:GetService("ReflectionService")
-- Tüm yeteneklere sahip bir SecurityCapabilities nesnesi oluştur
local allCapabilities = SecurityCapabilities.new(table.unpack(Enum.SecurityCapability:GetEnumItems()))
-- Tüm yeteneklerle erişilebilen tüm sınıfları al
local allClasses = ReflectionService:GetClasses({ Security = allCapabilities })
print("Toplam sınıflar:", #allClasses)
-- Belirli bir sınıfı al
local partClass = ReflectionService:GetClass("Part")
if partClass then
print("\nParça sınıfı:")
print(" İsim:", partClass.Name)
print(" Üst sınıf:", partClass.Superclass and tostring(partClass.Superclass) or "yok")
end
-- Bir sınıfın ilk 5 özelliğini al
local properties = ReflectionService:GetPropertiesOfClass("Part", { Security = allCapabilities })
print("\nParça özellikleri:", #properties)
for i = 1, math.min(5, #properties) do
print(" -", properties[i].Name)
end

API Referansı
Yöntemler
GetClass
ReflectionService:GetClass(
className:string, filter:Dictionary
):ReflectedClass?
Parametreler
className:string
filter:Dictionary
Varsayılan değer: "nil"
Dönüşler
ReflectedClass?

GetClasses
ReflectionService:GetClasses(filter:Dictionary):{ReflectedClass}
Parametreler
filter:Dictionary
Varsayılan değer: "nil"
Dönüşler
{ReflectedClass}

GetEventsOfClass
ReflectionService:GetEventsOfClass(
className:string, filter:Dictionary
):{ReflectedEvent}
Parametreler
className:string
filter:Dictionary
Varsayılan değer: "nil"
Dönüşler
{ReflectedEvent}

GetMethodsOfClass
ReflectionService:GetMethodsOfClass(
className:string, filter:Dictionary
):{ReflectedMethod}
Parametreler
className:string
filter:Dictionary
Varsayılan değer: "nil"
Dönüşler
{ReflectedMethod}

GetPropertiesOfClass
ReflectionService:GetPropertiesOfClass(
className:string, filter:Dictionary
):{ReflectedProperty}
Parametreler
className:string
filter:Dictionary
Varsayılan değer: "nil"
Dönüşler
{ReflectedProperty}

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