CloudLocalizerFrameFilter Class

Description

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


Fields

RequestTimeout

C#

public int RequestTimeout

Timeout in milliseconds when communicating with server.


Properties

enabled

C#

public bool enabled { get; set; }

Enable/disable localizing when ARSession is running.

SimulatorLocation

C#

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

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

BlockHolder

C#

public Scene.BlockHolder BlockHolder { get; }

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

LandmarkFilter

C#

public Optional< MegaLandmarkFilterWrapper > LandmarkFilter { get; }

The Mega Landmark filter if CloudLocalizerFrameFilter.ServiceType is MegaApiType.Landmark . You should manually call MegaLandmarkFilterWrapper.FilterBySpotId first. The tracker can only track after filter is found in this case.

ServiceType

C#

public MegaApiType ServiceType { get; set; }

EasyAR Mega service type. Set before session start.

ServiceAccessSource

C#

public MegaServiceAccessSourceType ServiceAccessSource { get; set; }

Service access source type. Set before session start.

ServiceAccessData

C#

public ExplicitAddressAccessData ServiceAccessData { get; set; }

Service access data. Set before session start. Do not set if MegaServiceAccessSourceType.GlobalConfig is in use.

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< MegaLocalizationResponse > callback)

Send localization request.

SwitchEndPoint

C#

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

Switches remote end point.

UpdateToken

C#

public void UpdateToken(string token)

Updates API Token.