Class SpatialMappingBase
Inheritance
System.Object
SpatialMappingBase
Syntax
public abstract class SpatialMappingBase : MonoBehaviour
Fields
m_BakePhysics
Declaration
protected bool m_BakePhysics
Field Value
| Type |
Description |
| System.Boolean |
|
m_SurfaceParentWasDynamicallyCreated
Declaration
protected bool m_SurfaceParentWasDynamicallyCreated
Field Value
| Type |
Description |
| System.Boolean |
|
Properties
bakePhysics
Declaration
public bool bakePhysics { get; protected set; }
Property Value
| Type |
Description |
| System.Boolean |
|
bounds
Declaration
protected Bounds bounds { get; set; }
Property Value
freezeUpdates
Declaration
public bool freezeUpdates { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
halfBoxExtents
Declaration
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
| Type |
Description |
| System.Int32[] |
|
lodType
Declaration
public SpatialMappingBase.LODType lodType { get; set; }
Property Value
nextSurfaceChangeUpdateTime
Declaration
protected float nextSurfaceChangeUpdateTime { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
numUpdatesBeforeRemoval
Declaration
public int numUpdatesBeforeRemoval { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
observerId
Declaration
protected int observerId { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
pendingSurfacesForEviction
Declaration
protected Dictionary<int, SpatialMappingBase.Surface> pendingSurfacesForEviction { get; set; }
Property Value
secondsBetweenUpdates
Declaration
public float secondsBetweenUpdates { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
selectedCamera
Declaration
protected Camera selectedCamera { get; set; }
Property Value
sphereRadius
Declaration
public float sphereRadius { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
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
public GameObject surfaceParent { get; set; }
Property Value
| Type |
Description |
| GameObject |
|
surfaceParentWasDynamicallyCreated
Declaration
protected bool surfaceParentWasDynamicallyCreated { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
surfacesToRemoveFromDict
Declaration
protected List<int> surfacesToRemoveFromDict { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<System.Int32> |
|
volumeType
Declaration
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
| Type |
Description |
| System.Boolean |
|
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 |
| System.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
| Type |
Name |
Description |
| SpatialMappingBase |
requester |
|
| SurfaceData |
bakedData |
|
| System.Boolean |
outputWritten |
|
| System.Single |
elapsedBakeTimeSeconds |
|
ProcessEvictedObjects()
Declaration
protected void ProcessEvictedObjects()
Reset()
Declaration
protected virtual void Reset()
ShouldRemainActiveWhileBeingRemoved(SpatialMappingBase.Surface)
Declaration
protected bool ShouldRemainActiveWhileBeingRemoved(SpatialMappingBase.Surface surface)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Start()
Declaration
protected virtual void Start()
TryGetHighestPriorityRequest(out SurfaceData)
Declaration
protected virtual bool TryGetHighestPriorityRequest(out SurfaceData bestSurfaceData)
Parameters
| Type |
Name |
Description |
| SurfaceData |
bestSurfaceData |
|
Returns
| Type |
Description |
| System.Boolean |
|
Update()
Declaration
protected virtual void Update()
UpdatePosition()
Declaration
protected void UpdatePosition()
UpdateSurfaceData(SpatialMappingBase.Surface)
Declaration
protected virtual void UpdateSurfaceData(SpatialMappingBase.Surface surface)
Parameters