Class SpatialMappingBase
Inheritance
SpatialMappingBase
Syntax
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public abstract class SpatialMappingBase : MonoBehaviour
Fields
m_BakePhysics
Declaration
protected bool m_BakePhysics
Field Value
m_SurfaceParentWasDynamicallyCreated
Declaration
protected bool m_SurfaceParentWasDynamicallyCreated
Field Value
Properties
bakePhysics
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public bool bakePhysics { get; protected set; }
Property Value
bounds
Declaration
protected Bounds bounds { get; set; }
Property Value
freezeUpdates
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public bool freezeUpdates { get; set; }
Property Value
halfBoxExtents
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public Vector3 halfBoxExtents { get; set; }
Property Value
lastUpdatedObserverPosition
Declaration
protected Vector3 lastUpdatedObserverPosition { get; set; }
Property Value
lodToPcm
Declaration
protected static int[] lodToPcm { get; }
Property Value
lodType
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public SpatialMappingBase.LODType lodType { get; set; }
Property Value
nextSurfaceChangeUpdateTime
Declaration
protected float nextSurfaceChangeUpdateTime { get; set; }
Property Value
numUpdatesBeforeRemoval
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public int numUpdatesBeforeRemoval { get; set; }
Property Value
observerId
Declaration
protected int observerId { get; set; }
Property Value
pendingSurfacesForEviction
Declaration
protected Dictionary<int, SpatialMappingBase.Surface> pendingSurfacesForEviction { get; set; }
Property Value
secondsBetweenUpdates
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public float secondsBetweenUpdates { get; set; }
Property Value
selectedCamera
Declaration
protected Camera selectedCamera { get; set; }
Property Value
sphereRadius
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public float sphereRadius { get; set; }
Property Value
surfaceObjects
Declaration
protected Dictionary<int, SpatialMappingBase.Surface> surfaceObjects { get; set; }
Property Value
surfaceObserver
Declaration
protected SurfaceObserver surfaceObserver { get; set; }
Property Value
| Type |
Description |
| SurfaceObserver |
|
surfaceParent
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public GameObject surfaceParent { get; set; }
Property Value
| Type |
Description |
| GameObject |
|
surfaceParentWasDynamicallyCreated
Declaration
protected bool surfaceParentWasDynamicallyCreated { get; set; }
Property Value
surfacesToRemoveFromDict
Declaration
protected List<int> surfacesToRemoveFromDict { get; set; }
Property Value
volumeType
Declaration
[Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new Unity XR Plugin System. More information about the new XR Plugin System can be found at https://docs.google.com/document/d/1AMk4NwRVAtnG-LScXT2ne_s5mD4rmWK_C9dyn39ZDbc/edit.", false)]
public SpatialMappingBase.VolumeType volumeType { get; set; }
Property Value
Methods
AddRequiredComponentsForBaking(SpatialMappingBase.Surface)
Declaration
protected virtual void AddRequiredComponentsForBaking(SpatialMappingBase.Surface surface)
Parameters
Awake()
Declaration
protected virtual void Awake()
BoundsContains(Vector3)
Declaration
protected bool BoundsContains(Vector3 position)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
Returns
CloneBakedComponents(SurfaceData, SpatialMappingBase.Surface)
Declaration
protected void CloneBakedComponents(SurfaceData bakedData, SpatialMappingBase.Surface target)
Parameters
DestroySurface(SpatialMappingBase.Surface)
Declaration
protected virtual void DestroySurface(SpatialMappingBase.Surface surface)
Parameters
ForEachSurfaceInCache(Action<SpatialMappingBase.Surface>)
Declaration
protected void ForEachSurfaceInCache(Action<SpatialMappingBase.Surface> callback)
Parameters
GetLODFromTPCM(Double)
Declaration
public static SpatialMappingBase.LODType GetLODFromTPCM(double trianglesPerCubicMeter)
Parameters
| Type |
Name |
Description |
| Double |
trianglesPerCubicMeter |
|
Returns
OnBeginSurfaceEviction(Boolean, SpatialMappingBase.Surface)
Declaration
protected abstract void OnBeginSurfaceEviction(bool shouldBeActiveWhileRemoved, SpatialMappingBase.Surface surface)
Parameters
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnDidApplyAnimationProperties()
Declaration
protected virtual void OnDidApplyAnimationProperties()
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()
OnRemoveSurface(SurfaceId)
Declaration
protected void OnRemoveSurface(SurfaceId surfaceId)
Parameters
| Type |
Name |
Description |
| SurfaceId |
surfaceId |
|
OnResetProperties()
Declaration
protected virtual void OnResetProperties()
OnSurfaceDataReady(SpatialMappingBase, SurfaceData, Boolean, Single)
Declaration
protected abstract void OnSurfaceDataReady(SpatialMappingBase requester, SurfaceData bakedData, bool outputWritten, float elapsedBakeTimeSeconds)
Parameters
ProcessEvictedObjects()
Declaration
protected void ProcessEvictedObjects()
Reset()
Declaration
protected virtual void Reset()
ShouldRemainActiveWhileBeingRemoved(SpatialMappingBase.Surface)
Declaration
protected bool ShouldRemainActiveWhileBeingRemoved(SpatialMappingBase.Surface surface)
Parameters
Returns
Start()
Declaration
protected virtual void Start()
TryGetHighestPriorityRequest(out SurfaceData)
Declaration
protected virtual bool TryGetHighestPriorityRequest(out SurfaceData bestSurfaceData)
Parameters
| Type |
Name |
Description |
| SurfaceData |
bestSurfaceData |
|
Returns
Update()
Declaration
protected virtual void Update()
UpdatePosition()
Declaration
protected void UpdatePosition()
UpdateSurfaceData(SpatialMappingBase.Surface)
Declaration
protected virtual void UpdateSurfaceData(SpatialMappingBase.Surface surface)
Parameters