배우기
엔진 클래스
ReflectionService
만들 수 없음
서비스
복제되지 않음

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


요약
메서드
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}
상속된 멤버
코드 샘플
ReflectionService 개요
local ReflectionService = game:GetService("ReflectionService")
-- 모든 기능을 가진 SecurityCapabilities 객체 생성
local allCapabilities = SecurityCapabilities.new(table.unpack(Enum.SecurityCapability:GetEnumItems()))
-- 모든 기능으로 접근 가능한 모든 클래스 가져오기
local allClasses = ReflectionService:GetClasses({ Security = allCapabilities })
print("총 클래스 수:", #allClasses)
-- 특정 클래스 가져오기
local partClass = ReflectionService:GetClass("Part")
if partClass then
print("\nPart 클래스:")
print(" 이름:", partClass.Name)
print(" 슈퍼클래스:", partClass.Superclass and tostring(partClass.Superclass) or "없음")
end
-- 클래스의 처음 5개 속성 가져오기
local properties = ReflectionService:GetPropertiesOfClass("Part", { Security = allCapabilities })
print("\nPart 속성 수:", #properties)
for i = 1, math.min(5, #properties) do
print(" -", properties[i].Name)
end

API 참조
메서드
GetClass
ReflectionService:GetClass(
className:string, filter:Dictionary
):ReflectedClass?
매개 변수
className:string
filter:Dictionary
기본값: "nil"
반환
ReflectedClass?

GetClasses
ReflectionService:GetClasses(filter:Dictionary):{ReflectedClass}
매개 변수
filter:Dictionary
기본값: "nil"
반환
{ReflectedClass}

GetEventsOfClass
ReflectionService:GetEventsOfClass(
className:string, filter:Dictionary
):{ReflectedEvent}
매개 변수
className:string
filter:Dictionary
기본값: "nil"
반환
{ReflectedEvent}

GetMethodsOfClass
ReflectionService:GetMethodsOfClass(
className:string, filter:Dictionary
):{ReflectedMethod}
매개 변수
className:string
filter:Dictionary
기본값: "nil"
반환
{ReflectedMethod}

GetPropertiesOfClass
ReflectionService:GetPropertiesOfClass(
className:string, filter:Dictionary
):{ReflectedProperty}
매개 변수
className:string
filter:Dictionary
기본값: "nil"
반환
{ReflectedProperty}

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