Class SpatialMapping
The SpatialMappingObserver class encapsulates the SurfaceObserver into an easy to use object that handles managing the observed surfaces and the rendering of surface geometry.
Inheritance
SpatialMapping
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class SpatialMapping : BaseSpatialMapping, IDependencyObject
Constructors
SpatialMapping()
Initializes a new instance of the SpatialMapping class.
Declaration
public SpatialMapping()
Properties
CollisionCategories
Gets or sets the collision category bits.
Declaration
[DataMember]
public CollisionCategory3D CollisionCategories { get; set; }
Property Value
| Type | Description |
|---|---|
| CollisionCategory3D |
GenerateColliders
Gets or sets a value indicating whether public.
Declaration
public bool GenerateColliders { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsVisible
Gets or sets a value indicating whether indicate whether the mesh will shown or not.
Declaration
[RenderProperty(Tooltip = "Indicate whether the mesh will shown or not.")]
[DataMember]
public bool IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaskBits
Gets or sets the collision mask bits.
Declaration
[DataMember]
public CollisionCategory3D MaskBits { get; set; }
Property Value
| Type | Description |
|---|---|
| CollisionCategory3D |
Material
Gets or sets the material path.
Declaration
[DataMember]
public Material Material { get; set; }
Property Value
| Type | Description |
|---|---|
| Material |
Methods
OnSurfaceChanged(Guid, SpatialMappingSurface, SurfaceChange)
Handles the SurfaceObserver's OnSurfaceChanged event.
Declaration
protected override void OnSurfaceChanged(Guid id, SpatialMappingSurface surface, SurfaceChange changeType)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The identifier assigned to the surface which has changed. |
| SpatialMappingSurface | surface | The surface. |
| SurfaceChange | changeType | The type of change that occurred on the surface. |