Class ARSessionFactory
- 네임스페이스
- easyar
- 어셈블리
- EasyAR.Sense.dll
ARSession 팩토리.
public class ARSessionFactory
- 상속
-
ARSessionFactory
메서드
AddFrameFilter<Filter>(GameObject, Resources)
ARSession에 frame filter를 추가합니다. 밀도 공간 맵을 추가할 때 해당 리소스를 전달해야 합니다.
public static GameObject AddFrameFilter<Filter>(GameObject sessionObj, ARSessionFactory.Resources resources = null) where Filter : FrameFilter
매개 변수
sessionObjresources
형식 매개 변수
Filter
AddFrameSource<Source>(GameObject, bool)
frame source를 ARSession에 추가합니다.
public static GameObject AddFrameSource<Source>(GameObject sessionObj, bool addToFirst = false) where Source : FrameSource
매개 변수
sessionObjaddToFirst
형식 매개 변수
Source
AddOriginChild(GameObject)
ARSession 원점에 XROriginChildController를 추가합니다.
public static GameObject AddOriginChild(GameObject origin)
매개 변수
origin
CreateController<Controller>(Resources)
컨트롤러를 생성합니다. 스파스 공간 맵을 생성할 때는 해당 리소스를 전달해야 합니다.
public static GameObject CreateController<Controller>(ARSessionFactory.Resources resources = null)
매개 변수
resources
형식 매개 변수
Controller
CreateOrigin()
ARSession 원점 생성(Unity XR 프레임워크인 AR Foundation 등을 사용하지 않는 경우).
public static GameObject CreateOrigin()
CreateSession()
빈 ARSession 생성.
public static GameObject CreateSession()
CreateSession(ARSessionPreset, Resources)
ARSession을 생성하세요. 밀집 공간 맵을 포함할 때 해당 리소스를 전달해야 합니다.
public static GameObject CreateSession(ARSessionFactory.ARSessionPreset preset, ARSessionFactory.Resources resources = null)
매개 변수
presetresources
CreateVideoRecorder()
video recorder 만들기
public static GameObject CreateVideoRecorder()
DefaultName(Type)
컴포넌트의 기본 이름.
public static string DefaultName(Type type)
매개 변수
type
DefaultName<Component>()
컴포넌트의 기본 이름.
public static string DefaultName<Component>()
형식 매개 변수
Component
IsSession(GameObject)
ARSession인가요.
public static bool IsSession(GameObject sessionObj)
매개 변수
sessionObj
SetupFrameFilters(List<GameObject>, ARSessionPreset)
frame filter를 사전 설정된 요구 사항에 맞게 구성합니다.
public static void SetupFrameFilters(List<GameObject> filters, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterspreset
SetupImageTracker(GameObject, ARSessionPreset)
image tracker를 사전 설정된 요구 사항에 맞게 구성합니다.
public static void SetupImageTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterpreset
SetupMegaTracker(GameObject, ARSessionPreset)
Mega tracker가 사전 설정 요구 사항을 준수하도록 구성합니다.
public static void SetupMegaTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterpreset
SetupObjectTracker(GameObject, ARSessionPreset)
object tracker를 사전 설정 요구 사항에 맞게 설정합니다.
public static void SetupObjectTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterpreset
SortFrameSource(GameObject, FrameSourceSortMethod)
ARSession 객체의 frame source를 정렬합니다.
public static void SortFrameSource(GameObject sessionObj, ARSessionFactory.FrameSourceSortMethod method)
매개 변수
sessionObjmethod