docs.unity3d.com
    Show / Hide Table of Contents

    Class RecordedPointCloudProvider

    Inheritance
    Object
    RecordedPointCloudProvider
    Namespace: Unity.MARS.Recording.Providers
    Syntax
    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()
    Implements
    IRecordedDataProvider.ClearData()

    GetPoints()

    Get the current point cloud data

    Declaration
    public Dictionary<MarsTrackableId, PointCloudData> GetPoints()
    Returns
    Type Description
    Dictionary<MarsTrackableId, PointCloudData>

    The point cloud data

    Implements
    IProvidesPointCloud.GetPoints()

    OnNotify(Playable, INotification, Object)

    Declaration
    public void OnNotify(Playable origin, INotification notification, object context)
    Parameters
    Type Name Description
    Playable origin
    INotification notification
    Object context

    StartDetectingPoints()

    Start detecting point clouds. Point cloud detection is enabled on initialization, so this is only necessary after calling StopDetecting.

    Declaration
    public void StartDetectingPoints()
    Implements
    IProvidesPointCloud.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()
    Implements
    IProvidesPointCloud.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
    IProvidesPointCloud.PointCloudUpdated
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023