docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IUsesPointCloudMethods

    Inheritance
    object
    IUsesPointCloudMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesPointCloudMethods

    Methods

    GetPoints(IUsesPointCloud)

    Get the latest available point cloud data

    Declaration
    public static Dictionary<MarsTrackableId, PointCloudData> GetPoints(this IUsesPointCloud obj)
    Parameters
    Type Name Description
    IUsesPointCloud obj
    Returns
    Type Description
    Dictionary<MarsTrackableId, PointCloudData>

    The point cloud data

    StartDetectingPoints(IUsesPointCloud)

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

    Declaration
    public static void StartDetectingPoints(this IUsesPointCloud obj)
    Parameters
    Type Name Description
    IUsesPointCloud obj

    StopDetectingPoints(IUsesPointCloud)

    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 static void StopDetectingPoints(this IUsesPointCloud obj)
    Parameters
    Type Name Description
    IUsesPointCloud obj

    SubscribePointCloudUpdated(IUsesPointCloud, Action<Dictionary<MarsTrackableId, PointCloudData>>)

    Subscribe to the pointCloudUpdated event, which is called whenever the point cloud is updated

    Declaration
    public static void SubscribePointCloudUpdated(this IUsesPointCloud obj, Action<Dictionary<MarsTrackableId, PointCloudData>> pointCloudUpdated)
    Parameters
    Type Name Description
    IUsesPointCloud obj
    Action<Dictionary<MarsTrackableId, PointCloudData>> pointCloudUpdated

    The delegate to subscribe

    UnsubscribePointCloudUpdated(IUsesPointCloud, Action<Dictionary<MarsTrackableId, PointCloudData>>)

    Unsubscribe a delegate from the pointCloudUpdated event

    Declaration
    public static void UnsubscribePointCloudUpdated(this IUsesPointCloud obj, Action<Dictionary<MarsTrackableId, PointCloudData>> pointCloudUpdated)
    Parameters
    Type Name Description
    IUsesPointCloud obj
    Action<Dictionary<MarsTrackableId, PointCloudData>> pointCloudUpdated

    The delegate to unsubscribe

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)