Table of Contents

Class ARSessionFactory

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

Фабрика ARSession.

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

Методы

AddFrameFilter<Filter>(GameObject, Resources)

Добавить frame-filter в ARSession. При добавлении карты плотного пространства необходимо передать соответствующий ресурс.

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.

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)

Параметры

preset
resources

CreateVideoRecorder()

Создать видеорегистратор.

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)

Параметры

filters
preset

SetupImageTracker(GameObject, ARSessionPreset)

Настроить image-tracker в соответствии с предустановленными требованиями.

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

Параметры

filter
preset

SetupMegaTracker(GameObject, ARSessionPreset)

Настроить Mega-tracker в соответствии с предустановленными требованиями.

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

Параметры

filter
preset

SetupObjectTracker(GameObject, ARSessionPreset)

Настроить object-tracker в соответствии с предустановленными требованиями.

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

Параметры

filter
preset

SortFrameSource(GameObject, FrameSourceSortMethod)

Отсортировать frame-source под объектом ARSession.

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

Параметры

sessionObj
method