Table of Contents

Class ARSessionFactory

Пространство имен
easyar
Сборка
EasyAR.Sense.dll

Фабрика ARSession.

public class ARSessionFactory
Наследование
ARSessionFactory

Методы

AddFrameFilter<Filter>(GameObject, Resources)

Добавляет frame filter в ARSession. При добавлении dense spatial map необходимо передать соответствующие ресурсы.

public static GameObject AddFrameFilter<Filter>(GameObject sessionObj, ARSessionFactory.Resources resources = null) where Filter : FrameFilter

Параметры

sessionObj
resources

Параметры типа

Filter

AddFrameSource<Source>(GameObject, bool)

Добавляет frame source в ARSession.

public static GameObject AddFrameSource<Source>(GameObject sessionObj, bool addToFirst = false) where Source : FrameSource

Параметры

sessionObj
addToFirst

Параметры типа

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()

Создает ARSession origin, когда Unity XR framework, например AR Foundation, не используется.

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)

Параметры

preset
resources

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 в соответствии с требованиями preset.

public static void SetupFrameFilters(List<GameObject> filters, ARSessionFactory.ARSessionPreset preset)

Параметры

filters
preset

SetupImageTracker(GameObject, ARSessionPreset)

Настраивает image tracker в соответствии с требованиями preset.

public static void SetupImageTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)

Параметры

filter
preset

SetupMegaTracker(GameObject, ARSessionPreset)

Настраивает Mega tracker в соответствии с требованиями preset.

public static void SetupMegaTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)

Параметры

filter
preset

SetupObjectTracker(GameObject, ARSessionPreset)

Настраивает object tracker в соответствии с требованиями preset.

public static void SetupObjectTracker(GameObject filter, ARSessionFactory.ARSessionPreset preset)

Параметры

filter
preset

SortFrameSource(GameObject, FrameSourceSortMethod)

Сортирует frame sources под объектом ARSession.

public static void SortFrameSource(GameObject sessionObj, ARSessionFactory.FrameSourceSortMethod method)

Параметры

sessionObj
method