ARSessionFactory Class¶
Description¶
ARSession Factory.
Enums¶
public enum ARSessionFactory.ARSessionPreset |
ARSession preset. |
Classes¶
public class ARSessionFactory.Resources |
Resources required to create components. |
Methods¶
CreateSession¶
- C#
public static GameObject CreateSession()
Create empty AR Session.
CreateSession¶
- C#
public static GameObject CreateSession( ARSessionFactory.ARSessionPreset preset, ARSessionFactory.Resources resources = null)
Create AR Session. Resources are required when dense spatial map is included.
AddFrameFilter¶
- C#
public static GameObject AddFrameFilter( GameObject sessionObj, ARSessionFactory.Resources resources = null)
Add frame filter to AR Session. Resources are required adding dense spatial map.
AddFrameSource¶
- C#
public static GameObject AddFrameSource( GameObject sessionObj, bool addToFirst = False)
Add frame source to AR Session.
CreateVideoRecorder¶
- C#
public static GameObject CreateVideoRecorder()
Create video recorder.
CreateController¶
- C#
public static GameObject CreateController( ARSessionFactory.Resources resources = null)
Create controller. Resources are required when creating sparse spatial map.
SetupFrameSources¶
- C#
public static void SetupFrameSources(List< GameObject > sources, ARSessionFactory.ARSessionPreset preset)
Setup frame sources to meet preset requirements.
SetupFrameFilters¶
- C#
public static void SetupFrameFilters(List< GameObject > filters, ARSessionFactory.ARSessionPreset preset)
Setup frame filters to meet preset requirements.
SetupMotionTrackerFrameSource¶
- C#
public static void SetupMotionTrackerFrameSource( GameObject source, ARSessionFactory.ARSessionPreset preset)
Setup motion tracker to meet preset requirements.
SetupCameraDeviceFrameSource¶
- C#
public static void SetupCameraDeviceFrameSource( GameObject source, ARSessionFactory.ARSessionPreset preset)
Setup camera device to meet preset requirements.
SetupMegaTracker¶
- C#
public static void SetupMegaTracker( GameObject filter, ARSessionFactory.ARSessionPreset preset)
Setup Mega tracker to meet preset requirements.
DefaultName¶
- C#
public static string DefaultName()
Default name of component.
DefaultName¶
- C#
public static string DefaultName(Type type)
Default name of component.
IsSession¶
- C#
public static bool IsSession( GameObject sessionObj)
If the object is AR Session.