Class FrozenSpatialMapping
Class to reinterpret spatial mapping data from "spongy" space into "frozen" space. This is unnecessary when using MRTK's spatial mapping, which provides this and other enhancements over the native spatial mapping.
Namespace: Microsoft.MixedReality.WorldLocking.Tools
Assembly: cs.temp.dll.dll
Syntax
public class FrozenSpatialMapping : MonoBehaviour
Properties
Active
Whether the Mapping is active. If inactive, all resources disposed and only remade when active again.
Declaration
public bool Active { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
CenterObject
Object around which spatial mappings are centered. Set to null to center around the camera.
Declaration
public Transform CenterObject { get; }
Property Value
Type | Description |
---|---|
Transform |
Collide
Whether to perform collisions and raycasts against these surfaces.
Declaration
public bool Collide { get; }
Property Value
Type | Description |
---|---|
Boolean |
Display
Whether to render the active surfaces with the given material.
Declaration
public bool Display { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
DrawMaterial
Material to draw surfaces with. May be null if no display wanted.
Declaration
public Material DrawMaterial { get; }
Property Value
Type | Description |
---|---|
Material |
HangerObject
Object to attach surface objects to. May be null to add surface objects to scene root.
Declaration
public Transform HangerObject { get; }
Property Value
Type | Description |
---|---|
Transform |
Quality
Quality at which to tessellate.
Declaration
public FrozenSpatialMapping.QualityType Quality { get; }
Property Value
Type | Description |
---|---|
FrozenSpatialMapping.QualityType |
Radius
Radius around the camera to map.
Declaration
public float Radius { get; }
Property Value
Type | Description |
---|---|
Single |
UpdatePeriod
Period in seconds at which to update surfaces.
Declaration
public float UpdatePeriod { get; }
Property Value
Type | Description |
---|---|
Single |