MegaLandmarkLocalizerFrameFilter Class

Description

MonoBehaviour which controls MegaLandmarkLocalizer 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

RequestTimeout

C#

public int RequestTimeout

Timeout in milliseconds when communicating with server.

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 MegaLandmarkLocalizerFrameFilter.UseGlobalServiceConfig == false, only valid for this object.


Properties

SimulatorLocation

C#

public Scene.Location SimulatorLocation { get; set; }

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

BlockHolder

C#

public Scene.BlockHolder BlockHolder { get; }

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

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.


Methods

Resolve

C#

public void Resolve(Action< MegaLandmarkLocalizationResponse > callback)

Send localization request. It will work normally only after filter response MegaLandmarkTrackerLocalizationStatus.Found .

Filter

C#

public void Filter(Action< MegaLandmarkFilterResponse > callback)

Send filter request.