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.
TargetMaxUpdateTimePerFrame¶
- C#
public int TargetMaxUpdateTimePerFrame
The target maximum update time per frame in milliseconds. The real time used each frame may differ from this value and a minimum amount fo data is ensured to be updated no matter what the value is. No extra time will be used if data does need to update. Decrease this value if the mesh update slows rendering.
EnableMeshCollider¶
- C#
public bool EnableMeshCollider
Whether to create mesh collider on the mesh created. Set before ARSession.Start .
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.