Class CloudLocalizerFrameFilter
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Controls the easyar.CloudLocalizer in the scene, providing functional extensions in the Unity environment.
[RequireComponent(typeof(BlockHolder))]
public class CloudLocalizerFrameFilter : FrameFilter
- Inheritance
-
CloudLocalizerFrameFilter
Fields
RequestTimeout
Timeout duration for communication with the server (in milliseconds).
public int RequestTimeout
Properties
BlockHolder
Component for holding and managing Blocks in the scene.
public BlockHolder BlockHolder { get; }
LandmarkFilter
Mega Landmark filtering feature 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; }
LocationInputMode
Location input mode. Needs to be set before the Session starts. Must be set to Simulator for remote debugging or running on a computer, otherwise it will not be usable. Set to Onsite for on-site use to achieve the best results.
public MegaLocationInputMode LocationInputMode { get; set; }
ProximityLocation
Nearby location results.
public Optional<ProximityLocationResult> ProximityLocation { set; }
RequestMessage
public string RequestMessage { get; set; }
ServiceAccessData
Service access data. Needs to be set before the Session starts. No need to set when using GlobalConfig.
public ExplicitAddressAccessData ServiceAccessData { get; set; }
ServiceAccessSource
Service access data source type. Needs to be set before the Session starts.
public MegaServiceAccessSourceType ServiceAccessSource { get; set; }
ServiceType
EasyAR Mega service type. Needs to be set before the Session starts.
public MegaApiType ServiceType { get; set; }
SimulatorLocation
Location data used when LocationInputMode == Simulator.
public Optional<Location> SimulatorLocation { get; set; }
enabled
Enable/disable location during ARSession runtime.
public bool enabled { get; set; }
Methods
Resolve(Action<MegaLocalizationResponse>)
Send location request.
public void Resolve(Action<MegaLocalizationResponse> callback)
Parameters
callback
SwitchEndPoint(ExplicitAddressAccessData, BlockRootController)
Switch remote endpoint.
public void SwitchEndPoint(ExplicitAddressAccessData config, BlockRootController root)
Parameters
configroot
UpdateToken(string)
Update API token.
public void UpdateToken(string token)
Parameters
token