Table of Contents

Class ARSessionFactory

Namespace
easyar
Assembly
EasyAR.Sense.dll

ARSession Factory.

public class ARSessionFactory
Inheritance
ARSessionFactory

Methods

AddFrameFilter<Filter>(GameObject, Resources)

Add frame filter to ARSession. Corresponding resources need to be passed in when adding a dense spatial map.

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

Parameters

sessionObj
resources

Returns

Type Parameters

Filter

AddFrameSource<Source>(GameObject, bool)

Add frame source to ARSession.

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

Parameters

sessionObj
addToFirst

Returns

Type Parameters

Source

AddOriginChild(GameObject)

Add XROriginChildController to ARSession Origin.

public static GameObject AddOriginChild(GameObject origin)

Parameters

origin

Returns

CreateController<Controller>(Resources)

Create controller. Corresponding resources need to be passed in when creating a sparse spatial map.

public static GameObject CreateController<Controller>(ARSessionFactory.Resources resources = null)

Parameters

resources

Returns

Type Parameters

Controller

CreateOrigin()

Create ARSession Origin (when not using Unity XR framework like AR Foundation).

public static GameObject CreateOrigin()

Returns

CreateSession()

Create an empty ARSession.

public static GameObject CreateSession()

Returns

CreateSession(ARSessionPreset, Resources)

Create ARSession. Corresponding resources need to be passed in when including a dense spatial map.

public static GameObject CreateSession(ARSessionFactory.ARSessionPreset preset, ARSessionFactory.Resources resources = null)

Parameters

preset
resources

Returns

CreateVideoRecorder()

Create video recorder.

public static GameObject CreateVideoRecorder()

Returns

DefaultName(Type)

Default name of the component.

public static string DefaultName(Type type)

Parameters

type

Returns

DefaultName<Component>()

Default name of the component.

public static string DefaultName<Component>()

Returns

Type Parameters

Component

IsSession(GameObject)

Is it ARSession?

public static bool IsSession(GameObject sessionObj)

Parameters

sessionObj

Returns

SetupFrameFilters(List<GameObject>, ARSessionPreset)

Configure frame filter to meet preset requirements.

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

Parameters

filters
preset

SetupImageTracker(GameObject, ARSessionPreset)

Configure image tracker to meet preset requirements.

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

Parameters

filter
preset

SetupMegaTracker(GameObject, ARSessionPreset)

Configure Mega tracker to meet preset requirements.

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

Parameters

filter
preset

SetupObjectTracker(GameObject, ARSessionPreset)

Configure object tracker to meet preset requirements.

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

Parameters

filter
preset

SortFrameSource(GameObject, FrameSourceSortMethod)

Sort frame source under ARSession object.

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

Parameters

sessionObj
method