Class RecordedPointCloudProvider
Inherited Members
Namespace: Unity.MARS.Recording.Providers
Assembly: Unity.MARS.dll
Syntax
[ProviderSelectionOptions(-1073741825, null, true)]
public class RecordedPointCloudProvider : MonoBehaviour, IRecordedDataProvider, IProvidesPointCloud, IFunctionalityProvider, INotificationReceiver
Methods
ClearData()
Remove all provided data. This is called when a looping recording reaches its duration.
Declaration
public void ClearData()
GetPoints()
Get the current point cloud data
Declaration
public Dictionary<MarsTrackableId, PointCloudData> GetPoints()
Returns
Type | Description |
---|---|
Dictionary<MarsTrackableId, PointCloudData> | The point cloud data |
OnNotify(Playable, INotification, object)
The method called when a notification is raised.
Declaration
public void OnNotify(Playable origin, INotification notification, object context)
Parameters
Type | Name | Description |
---|---|---|
Playable | origin | The playable that sent the notification. |
INotification | notification | The received notification. |
object | context | User defined data that depends on the type of notification. Uses this to pass necessary information that can change with each invocation. |
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>> |