Class DenseSpatialMapBuilderFrameFilter
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Controls the easyar.DenseSpatialMap of MonoBehaviour 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
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
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. No matter what value is set, at least some data will be updated each frame. If data does not need to be updated, no extra time will be consumed. If mesh update slows down rendering, you can reduce this value.
public int TargetMaxUpdateTimePerFrame
Properties
MeshBlocks
All current mesh blocks.
public List<DenseSpatialMapBlockController> MeshBlocks { get; }
MeshColor
Mesh color. Modifications are only effective after the session starts.
When using the default shader, the alpha channel is ignored when running on URP or head-mounted displays.
public Color MeshColor { get; set; }
RenderMesh
Whether to render the mesh.
public bool RenderMesh { get; set; }
enabled
Starts/stops mapping during ARSession runtime. Mapping will only start after the session starts, when MonoBehaviour.enabled is true.
public bool enabled { get; set; }
Events
MeshBlockCreate
Event for new mesh block creation.
public event Action<DenseSpatialMapBlockController> MeshBlockCreate
MeshBlockUpdate
Event for mesh block update.
public event Action<List<DenseSpatialMapBlockController>> MeshBlockUpdate