MegaBlockLocalizerFrameFilter Class¶
Description¶
MonoBehaviour which controls CloudLocalizer 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 MegaBlockLocalizerFrameFilter.UseGlobalServiceConfig == false, only valid for this object.
Properties¶
SimulatorLocation¶
- C#
public Optional<Scene.Location> SimulatorLocation { get; set; }
Location data to be used when MegaBlockLocalizerFrameFilter.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< MegaBlockLocalizationResponse > callback)
Send localization request.
SwitchEndPoint¶
- C#
public void SwitchEndPoint( APIKeyAccessData config, Scene.BlockRootController root)
Switches remote end point.