Class DenseSpatialMapBuilderFrameFilter
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
A MonoBehaviour that controls easyar.DenseSpatialMap in the scene, providing functional extensions in the Unity environment.
public class DenseSpatialMapBuilderFrameFilter : FrameFilter
- Inheritance
-
DenseSpatialMapBuilderFrameFilter
Fields
EnableMeshCollider
Whether to create a mesh-collider on the generated mesh. Modifications are only effective before the session starts.
public bool EnableMeshCollider
Field Value
MapMeshMaterial
The Material used for rendering the map mesh. Modifications are only effective before the session starts. In the current version, when using URP, the transparency display of the default material is not enabled.
public Material MapMeshMaterial
Field Value
TargetMaxUpdateTimePerFrame
The maximum update time per frame for the target (in milliseconds). Can be modified at any time and takes effect immediately.
The actual time used per frame may differ from this value. Regardless of the setting, at least some data will be updated each frame. If no data needs updating, no extra time is consumed. If mesh updates slow down rendering, you can reduce this value.
public int TargetMaxUpdateTimePerFrame
Field Value
Properties
MeshBlocks
All current mesh blocks.
public List<DenseSpatialMapBlockController> MeshBlocks { get; }
Property Value
MeshColor
Mesh color. Modifications are only effective after the session starts.
When using the default shader, the transparency channel is ignored when running on URP or head-mounted displays.
public Color MeshColor { get; set; }
Property Value
RenderMesh
Whether to render the mesh.
public bool RenderMesh { get; set; }
Property Value
Events
MeshBlockCreate
Event for new mesh block creation.
public event Action<DenseSpatialMapBlockController> MeshBlockCreate
Event Type
MeshBlockUpdate
Event for mesh block updates.
public event Action<List<DenseSpatialMapBlockController>> MeshBlockUpdate