docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Point clouds sample

    The All Point Clouds sample demonstrates AR Foundation Point clouds functionality. You can open this sample in Unity from the Assets/Scenes/PointClouds folder.

    Tip

    AR Foundation samples are supported on platforms that support the demonstrated feature. To check whether a feature is supported on your chosen platform, refer to the Platform support table and the documentation for that feature.

    Point clouds scene

    This sample shows all feature points over time, not just the current frame's feature points. This is unlike the AR Default Point Cloud prefab, which shows just the feature points from the current frame.

    The sample uses a slightly modified version of the ARPointCloudParticleVisualizer component that stores all the feature points in a dictionary. As each feature point has a unique identifier, it can look up the stored point and update its position in the dictionary if it already exists. This is a useful starting point for custom solutions that require the entire map of point cloud points, for example for custom mesh reconstruction techniques.

    UI components

    This sample has two UI components:

    Component Location Description
    Button Lower left Swap between visualizing All points and just those in the Current Frame.
    Text Upper right Displays the number of points in each point cloud.

    Apple and ARKit are trademarks of Apple Inc., registered in the U.S. and other countries and regions.

    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)