MegaBlockTrackerFrameFilter Class

Description

MonoBehaviour which controls MegaTracker in the scene, providing a few extensions in the Unity environment.


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 APIKeyAccessData ServiceConfig

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


Properties

BlockHolder

C#

public Scene.BlockHolder BlockHolder { get; }

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

SimulatorLocation

C#

public Optional<Scene.Location> SimulatorLocation { get; set; }

Location data to be used when MegaBlockTrackerFrameFilter.LocationInputMode == MegaLocationInputMode.Simulator .

RequestTimeParameters

C#

public MegaRequestTimeParameters RequestTimeParameters { get; set; }

Request time parameters.

ResultPoseType

C#

public MegaResultPoseTypeParameters ResultPoseType { get; set; }

Result pose parameters.

ProximityLocation

C#

public Optional< ProximityLocationResult > ProximityLocation { set; }

Proximity location result.

LocationInputMode

C#

public MegaLocationInputMode LocationInputMode { get; set; }

Location input mode. Set before session start. Must set to MegaLocationInputMode.Simulator when debug remotely or running on PC otherwize Mega will fail to work. Set to MegaLocationInputMode.Onsite when running on site to reach the best performance.


Events

LocalizationUpdate

C#

public event Action< MegaBlockLocalizationResponse > 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.

SwitchEndPoint

C#

public void SwitchEndPoint( APIKeyAccessData config, Scene.BlockRootController root)

Switches remote end point.