MegaTrackerFrameFilter Class

Description

MonoBehaviour which controls MegaTracker in the scene, providing a few extensions in the Unity environment. Use MegaTrackerFrameFilter.Tracker directly when necessary.


Classes

public class MegaTrackerFrameFilter.MegaLocalizationServiceConfig

Service config for CloudLocalizer .

public class MegaTrackerFrameFilter.TimeParameters

Request time parameters.

public class MegaTrackerFrameFilter.ResultPoseTypeParameters

Result pose parameters.

public class MegaTrackerFrameFilter.LocalizationResponse

The response of localization request.

public class MegaTrackerFrameFilter.FallbackOptions

Fallback options mainly used for develop and debug.


MonoBehaviour Messages

protected virtual void Awake()

protected virtual void OnEnable()

protected virtual void OnDisable()

protected virtual void OnDestroy()


Fields

UseGlobalServiceConfig

C#

public bool UseGlobalServiceConfig

Use global service config or not. The global service config can be changed on the inspector after click Unity menu EasyAR -> Sense -> Configuration.

ServiceConfig

C#

public MegaTrackerFrameFilter.MegaLocalizationServiceConfig ServiceConfig

Service config when MegaTrackerFrameFilter.UseGlobalServiceConfig == false, only valid for this object.

Fallbacks

C#

public MegaTrackerFrameFilter.FallbackOptions Fallbacks

Fallback options mainly used for develop and debug.


Properties

Tracker

C#

public MegaTracker Tracker { get; }

EasyAR Sense API. Accessible when ARSession.State > ARSession.SessionState.Ready if available.

MapHolder

C#

public Scene.BlockHolder MapHolder { get; }

The block holder which holds and manages blocks in the scene.

RequestTimeParameters

C#

public MegaTrackerFrameFilter.TimeParameters RequestTimeParameters { get; set; }

Request time parameters.

ResultPoseType

C#

public MegaTrackerFrameFilter.ResultPoseTypeParameters ResultPoseType { get; set; }

Result pose parameters.

ProximityLocation

C#

public Optional< ProximityLocationResult > ProximityLocation { set; }

Proximity location result.


Events

LocalizationUpdate

C#

public event Action< MegaTrackerFrameFilter.LocalizationResponse > LocalizationUpdate

CloudLocalization service callback event. This event is usually used for debug, objects transform and status in the scene does not change with event data in the same time the event is triggered.


Methods

ResetTracker

C#

public void ResetTracker()

Reset tracker.