Class ARPointCloud | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ARPointCloud

    Represents a detected point cloud, aka feature points.

    Inheritance
    System.Object
    ARPointCloud
    Namespace: UnityEngine.XR.ARFoundation
    Syntax
    public class ARPointCloud : MonoBehaviour

    Properties

    lastUpdatedFrame

    The last frame during which the point cloud was updated.

    Declaration
    public int lastUpdatedFrame { get; }
    Property Value
    Type Description
    System.Int32
    Remarks

    This is consistent with the value you get from Time.frameCount

    Methods

    GetConfidence(List<Single>)

    Gets the confidence values for each point in the point cloud.

    Declaration
    public void GetConfidence(List<float> confidence)
    Parameters
    Type Name Description
    List<System.Single> confidence

    A List of floats representing the confidence values for each point in the point cloud. The contents are replaced with the current confidence values.

    GetPoints(List<Vector3>, Space)

    Replaces the contents of points with the feature points in Unity world space.

    Declaration
    public void GetPoints(List<Vector3> points, Space space = null)
    Parameters
    Type Name Description
    List<Vector3> points

    A List of Vector3s. The contents are replaced with the current point cloud.

    Space space

    Which coordinate system to use. Space.Self refers to session space, while Space.World refers to Unity world space. The default is Space.World.

    Events

    updated

    Invoked when the point cloud is updated.

    Declaration
    public event Action<ARPointCloud> updated
    Event Type
    Type Description
    Action<ARPointCloud>
    Back to top
    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