MegaTrackerFrameFilter Class¶
Description¶
MonoBehaviour which controls MegaTracker in the scene, providing a few extensions in the Unity environment.
Properties¶
enabled¶
- C#
public bool enabled { get; set; }
Start/Stop tracking when ARSession is running. Tracking will start only when MonoBehaviour .enabled is true after session started.
SimulatorLocation¶
- C#
public Optional<Scene.Location> SimulatorLocation { get; set; }
Location data to be used when MegaTrackerFrameFilter.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 MegaTrackerFrameFilter.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.
RequestTimeParameters¶
- C#
public MegaRequestTimeParameters RequestTimeParameters { get; set; }
Request time parameters.
ResultPoseType¶
- C#
public MegaResultPoseTypeParameters ResultPoseType { get; set; }
Result pose parameters. Generally, please do not modify it. It is used for controlling localization and other parameters in special scenarios, as it may affect the tracking effect.. Do not use it unless you consult with EasyAR and fully understand the implications.
Generally, please do not modify it. It is used for controlling localization and other parameters in special scenarios, as it may affect the tracking effect.. Do not use it unless you consult with EasyAR and fully understand the implications.
ProximityLocation¶
- C#
public Optional< ProximityLocationResult > ProximityLocation { set; }
Proximity location result.
MinInputFrameLevel¶
- C#
public MegaInputFrameLevel MinInputFrameLevel { get; set; }
Minimum MegaInputFrameLevel allowed for input frame. Session will fail to start if frame source can give only input frame with lower dimension CameraTransformType . Set before session start.
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¶
LocalizationRespond¶
- C#
public event Action< MegaLocalizationResponse > LocalizationRespond
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¶
SwitchEndPoint¶
- C#
public void SwitchEndPoint( ExplicitAddressAccessData config, Scene.BlockRootController root)
Switches remote end point.
ResetTracker¶
- C#
public void ResetTracker()
Reset tracker.
UpdateToken¶
- C#
public void UpdateToken(string token)
Updates API Token.