Table of Contents

Class ARSessionFactory

名前空間
easyar
アセンブリ
EasyAR.Sense.dll

ARSessionファクトリ。

public class ARSessionFactory
継承
ARSessionFactory

メソッド

AddFrameFilter<Filter>(GameObject, Resources)

フレームフィルターをARSessionに追加。密空間マップを追加する場合は対応するリソースを渡す必要がある。

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

パラメーター

sessionObj
resources

型パラメーター

Filter

AddFrameSource<Source>(GameObject, bool)

フレームソースを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原点を作成(AR FoundationなどUnity XRフレームワークを使用しない場合)。

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)

プリセット要件に合わせてフレームフィルターを設定。

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

パラメーター

filters
preset

SetupImageTracker(GameObject, ARSessionPreset)

プリセット要件に合わせてイメージトラッカーを設定。

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

パラメーター

filter
preset

SetupMegaTracker(GameObject, ARSessionPreset)

プリセット要件に合わせてメガトラッカーを設定。

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

パラメーター

filter
preset

SetupObjectTracker(GameObject, ARSessionPreset)

プリセット要件に合わせてオブジェクトトラッカーを設定。

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

パラメーター

filter
preset

SortFrameSource(GameObject, FrameSourceSortMethod)

ARSessionオブジェクト配下のフレームソースをソート。

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

パラメーター

sessionObj
method