Table of Contents

Class DenseSpatialMapBuilderFrameFilter

Namespace
easyar
Assembly
EasyAR.Sense.dll

Control in the scene the MonoBehaviour of DenseSpatialMap, providing function extensions in the Unity environment.

public class DenseSpatialMapBuilderFrameFilter : FrameFilter
Inheritance
DenseSpatialMapBuilderFrameFilter

Fields

EnableMeshCollider

Whether to create a mesh collider on the generated mesh. It is effective to modify before the session starts.

public bool EnableMeshCollider

Field Value

MapMeshMaterial

The Material used to render the Map mesh. It is effective to modify before the session starts. In the current version, the transparent display of the default material is not enabled when using URP.

public Material MapMeshMaterial

Field Value

TargetMaxUpdateTimePerFrame

The maximum update time per frame of the target in milliseconds. Can be modified at any time and takes effect immediately. The actual time used per frame may vary from this value. No matter what the value is set to, part of the data will be updated per frame. If the data does not need to be updated, no extra time will be consumed. If the mesh update slows down rendering, this value can be reduced.

The actual time used per frame may vary from this value. No matter what the value is set to, part of the data will be updated per frame. If the data does not need to be updated, no extra time will be consumed. If the mesh update slows down rendering, this value can be reduced.

public int TargetMaxUpdateTimePerFrame

Field Value

Properties

MeshBlocks

All current mesh blocks.

public List<DenseSpatialMapBlockController> MeshBlocks { get; }

Property Value

MeshColor

The color of the mesh. It is effective to modify after the session starts. When using the default shader, the transparent channel will be ignored when running on URP or the headset.

When using the default shader, the transparent channel will be ignored when running on URP or the headset.

public Color MeshColor { get; set; }

Property Value

RenderMesh

Whether to render the mesh.

public bool RenderMesh { get; set; }

Property Value

Events

MeshBlockCreate

The event of creating a new mesh block.

public event Action<DenseSpatialMapBlockController> MeshBlockCreate

Event Type

MeshBlockUpdate

The event of updating the mesh block.

public event Action<List<DenseSpatialMapBlockController>> MeshBlockUpdate

Event Type