Table of Contents

Class MegaTrackerFrameFilter

Namespace
easyar
Assembly
EasyAR.Sense.dll

Control the easyar.MegaTracker in the scene, and provide functional extensions in the Unity environment.

[RequireComponent(typeof(BlockHolder))]
public class MegaTrackerFrameFilter : FrameFilter
Inheritance
MegaTrackerFrameFilter

Properties

BlockHolder

Component that holds Block, holds and manages Block in the scene.

public BlockHolder BlockHolder { get; }

Property Value

LandmarkFilter

Mega Landmark filtering function when ServiceType is Landmark. At the beginning, you need to manually call FilterBySpotId(string, Action<MegaLandmarkFilterResponse>). The Tracker will not start tracking until the Filter returns Found.

public Optional<MegaLandmarkFilterWrapper> LandmarkFilter { get; }

Property Value

LocationInputMode

Location input mode. Need to be set before the Session starts. For remote debugging or running on a computer, it must be set to Simulator, otherwise it will not work. For on-site use, it should be set to Onsite to achieve the best effect.

public MegaLocationInputMode LocationInputMode { get; set; }

Property Value

MinInputFrameLevel

The minimum allowed MegaInputFrameLevel of the input frame. If the frame source can only give data with a lower dimension CameraTransformType, the Session will fail to start. It needs to be set before the Session starts.

public MegaInputFrameLevel MinInputFrameLevel { get; set; }

Property Value

ProximityLocation

Proximity position result.

public Optional<ProximityLocationResult> ProximityLocation { set; }

Property Value

RequestMessage

public string RequestMessage { get; set; }

Property Value

RequestTimeParameters

Request time parameter.

public MegaRequestTimeParameters RequestTimeParameters { get; set; }

Property Value

ResultPoseType

Result pose type parameter. Usually do not modify. Used for controlling positioning in special scenes, etc., which will affect the tracking effect. Do not use unless you consult EasyAR and clearly understand the impact.

Usually do not modify. Used for controlling positioning in special scenes, etc., which will affect the tracking effect. Do not use unless you consult EasyAR and clearly understand the impact.

public MegaResultPoseTypeParameters ResultPoseType { get; set; }

Property Value

ServiceAccessData

Service access data. Need to be set before the Session starts. No need to set when using GlobalConfig.

public ExplicitAddressAccessData ServiceAccessData { get; set; }

Property Value

ServiceAccessSource

Service access data source type. Need to be set before the Session starts.

public MegaServiceAccessSourceType ServiceAccessSource { get; set; }

Property Value

ServiceType

EasyAR Mega service type. Need to be set before the Session starts.

public MegaApiType ServiceType { get; set; }

Property Value

SimulatorLocation

Location data used when LocationInputMode == Simulator.

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

Property Value

Methods

ResetTracker()

Reset tracker.

public void ResetTracker()

SwitchEndPoint(ExplicitAddressAccessData, BlockRootController)

Switch remote endpoint.

public void SwitchEndPoint(ExplicitAddressAccessData config, BlockRootController root)

Parameters

config
root

UpdateToken(string)

Update API Token.

public void UpdateToken(string token)

Parameters

token

Events

LocalizationRespond

Service location return event. This event is usually used for debugging, and there is no corresponding relationship between the position and state of objects in the scene and the data in the event when the event occurs.

public event Action<MegaLocalizationResponse> LocalizationRespond

Event Type