Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question How to get ARPointCloud.positions using ARKit v 5.1.1

Discussion in 'AR' started by stets43, Apr 10, 2024.

  1. stets43


    Dec 13, 2022
    I've already exhausted the search and none of the previous solutions work using ARKit v 5.1.1

    All I want to do is to get ARPointCloud.positions, but it's unlear where / what component has this native slice and it differs a ton from version to version, making previous solutions useless. I want to work with the pointcloud data directly and run custom object detection on it for non-game related utilities.

  2. WyattBUnity


    Unity Technologies

    Mar 27, 2023
    Like you've said, the docs say it's ARPointCloud.positions, have you looked at ARPointCloudManager, to see if this provides enough info on how to get access to all the points? It looks like it may store multiple point clouds in it's "trackables" variable, so you may need to iterate over them. Check the source code of ARPointCloudManager.Raycast, and it may help here.
    Last edited: Apr 11, 2024