DenseSpatialMapBuilderFrameFilter Class

Description

MonoBehaviour which controls DenseSpatialMap in the scene, providing a few extensions in the Unity environment. Use DenseSpatialMapBuilderFrameFilter.Builder directly when necessary.


MonoBehaviour Messages

protected virtual void Awake()

protected virtual void OnEnable()

protected virtual void Update()

protected virtual void OnDisable()

protected virtual void OnDestroy()


Fields

MapMeshMaterial

C#

public Material MapMeshMaterial

Material for map mesh render. Mesh transparency is not enabled in URP by now when using default material.

BlockUpdateLimitation

C#

public int BlockUpdateLimitation

The max number of mesh blocks to be updated each frame. Decrease this value if the mesh update slows rendering.


Properties

Builder

C#

public DenseSpatialMap Builder { get; }

EasyAR Sense API. Accessible after Awake if available.

RenderMesh

C#

public bool RenderMesh { get; set; }

Mesh render on/off.

MeshColor

C#

public Color MeshColor { get; set; }

Mesh color.

MeshBlocks

C#

public List< DenseSpatialMapBlockController > MeshBlocks { get; }

All mesh blocks.


Events

MapCreate

C#

public event Action< DenseSpatialMapBlockController > MapCreate

Event when a new mesh block created.

MapUpdate

C#

public event Action<List< DenseSpatialMapBlockController >> MapUpdate

Event when mesh block updates.