Class SimulatedDiscoveryPointCloudProvider
Implements
IFunctionalityProvider
IFunctionalitySubscriber<IProvidesCameraOffset>
IFunctionalitySubscriber
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Providers.Synthetic
Assembly: Unity.MARS.dll
Syntax
[ProviderSelectionOptions(-1073741824, null, true)]
[MovedFrom("Unity.MARS")]
public class SimulatedDiscoveryPointCloudProvider : MonoBehaviour, IProvidesPointCloud, IFunctionalityProvider, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber
Methods
ClearPoints()
Declaration
public void ClearPoints()
GetNormals()
Declaration
public Dictionary<MarsTrackableId, List<Vector3>> GetNormals()
Returns
Type | Description |
---|---|
Dictionary<MarsTrackableId, List<Vector3>> |
GetPoints()
Get the current point cloud data
Declaration
public Dictionary<MarsTrackableId, PointCloudData> GetPoints()
Returns
Type | Description |
---|---|
Dictionary<MarsTrackableId, PointCloudData> | The point cloud data |
StartDetectingPoints()
Start detecting point clouds. Point cloud detection is enabled on initialization, so this is only necessary after calling StopDetecting.
Declaration
public void StartDetectingPoints()
StopDetectingPoints()
Stop detecting point clouds. This will happen automatically on destroying the session. It is only necessary to call this method to pause plane detection while maintaining camera tracking
Declaration
public void StopDetectingPoints()
Events
PointCloudUpdated
Callback for point cloud updates Passes the point cloud data as an argument
Declaration
public event Action<Dictionary<MarsTrackableId, PointCloudData>> PointCloudUpdated
Event Type
Type | Description |
---|---|
Action<Dictionary<MarsTrackableId, PointCloudData>> |
Implements
Unity.XRTools.ModuleLoader.IFunctionalityProvider
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber<TProvider>
Unity.XRTools.ModuleLoader.IFunctionalitySubscriber