SparseSpatialMapBuilderFrameFilter Class

Description

MonoBehaviour which controls SparseSpatialMap in the scene, providing map building functions of SparseSpatialMap .


Fields

PointCloudMaterial

C#

public Material PointCloudMaterial

Material for point cloud render. Only effective if modified before the session starts.


Properties

enabled

C#

public bool enabled { get; set; }

Start/Stop building when ARSession is running. Building will start only when MonoBehaviour .enabled is true after session started.

Target

C#

public SparseSpatialMapBuildTargetController Target { get; }

Target controller to display map building process. Can only be used after session start.

ServiceAccessSource

C#

public SparseSpatialMapWorkerFrameFilter.ServiceAccessSourceType ServiceAccessSource { get; set; }

Service access source type. Only effective if modified before the session starts.

ServiceAccessData

C#

public FixedAddressAPIKeyAccessData ServiceAccessData { get; set; }

Service access data. Only effective if modified before the session starts. Do not set if SparseSpatialMapWorkerFrameFilter.ServiceAccessSourceType.GlobalConfig is in use.


Methods

Host

C#

public void Host(string name, Optional< Image > preview, Optional<int> timeoutMilliseconds, Action<Optional< SparseSpatialMapController.SparseSpatialMapInfo >, Optional<string>> callback)

Create and upload map.

Build map. name is the map name. preview is the optional preview image。 timeoutMilliseconds is the optional timeout in milliseconds when communicating with server, default to 60000 if empty.