docs.unity3d.com
    目次を表示する/隠す

    Class IUsesPointCloudMethods

    Inheritance
    Object
    IUsesPointCloudMethods
    Namespace: Unity.MARS.Providers
    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)