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 mesh collider on the generated mesh. Changes are effective only before the session starts.
public bool EnableMeshCollider
MapMeshMaterial
The Material used to render the Map mesh. Changes are effective only before the session starts. In the current version, transparent display of the default material is not enabled when using URP.
public Material MapMeshMaterial
TargetMaxUpdateTimePerFrame
The maximum update time per frame for the target, in milliseconds. It can be changed at any time and takes effect immediately.
The actual time used per frame may differ from this value. No matter what value is set, at least part of the data is updated each frame. If no data needs to be updated, no extra time is consumed. If mesh updates slow down rendering, this value can be reduced.
public int TargetMaxUpdateTimePerFrame
Properties
MeshBlocks
All current mesh blocks.
public List<DenseSpatialMapBlockController> MeshBlocks { get; }
MeshColor
Mesh color. Changes are effective only after the session starts.
When using the default shader, the alpha channel is ignored at runtime on URP or headsets.
public Color MeshColor { get; set; }
RenderMesh
Whether to render the mesh.
public bool RenderMesh { get; set; }
enabled
Starts/stops mapping while ARSession is running. After the session starts, mapping starts only when MonoBehaviour.enabled is true.
public bool enabled { get; set; }
Events
MeshBlockCreate
Event when a new mesh block is created.
public event Action<DenseSpatialMapBlockController> MeshBlockCreate
MeshBlockUpdate
Event when a mesh block is updated.
public event Action<List<DenseSpatialMapBlockController>> MeshBlockUpdate