Class ARSessionFactory
- 네임스페이스
- easyar
- 어셈블리
- EasyAR.Sense.dll
ARSession factory입니다.
public class ARSessionFactory
- 상속
-
ARSessionFactory
메서드
AddFrameFilter<Filter>(GameObject, Resources)
ARSession에 frame filter를 추가합니다. dense spatial map을 추가하는 경우 해당 리소스를 전달해야 합니다.
public static GameObject AddFrameFilter<Filter>(GameObject sessionObj, ARSessionFactory.Resources resources = null) where Filter : FrameFilter
매개 변수
sessionObjresources
형식 매개 변수
Filter
AddFrameSource<Source>(GameObject, bool)
ARSession에 frame source를 추가합니다.
public static GameObject AddFrameSource<Source>(GameObject sessionObj, bool addToFirst = false) where Source : FrameSource
매개 변수
sessionObjaddToFirst
형식 매개 변수
Source
AddOriginChild(GameObject)
XROriginChildController를 ARSession origin에 추가합니다.
public static GameObject AddOriginChild(GameObject origin)
매개 변수
origin
CreateController<Controller>(Resources)
controller를 생성합니다. sparse spatial map을 생성하는 경우 해당 리소스를 전달해야 합니다.
public static GameObject CreateController<Controller>(ARSessionFactory.Resources resources = null) where Controller : TargetController
매개 변수
resources
형식 매개 변수
Controller
CreateOrigin()
AR Foundation과 같은 Unity XR framework를 사용하지 않을 때 ARSession origin을 생성합니다.
public static GameObject CreateOrigin()
CreateSession()
빈 ARSession을 생성합니다.
public static GameObject CreateSession()
CreateSession(ARSessionPreset, Resources)
ARSession을 생성합니다. dense spatial map을 포함하는 경우 해당 리소스를 전달해야 합니다.
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)
preset 요구 사항에 맞도록 frame filter를 구성합니다.
public static void SetupFrameFilters(List<GameObject> filters, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterspreset
SetupImageTracker(GameObject, ARSessionPreset)
preset 요구 사항에 맞도록 image tracker를 구성합니다.
public static void SetupImageTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterpreset
SetupMegaTracker(GameObject, ARSessionPreset)
preset 요구 사항에 맞도록 Mega tracker를 구성합니다.
public static void SetupMegaTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)
매개 변수
filterpreset
SetupObjectTracker(GameObject, ARSessionPreset)
preset 요구 사항에 맞도록 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