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