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 |
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 |
Space | space | Which coordinate system to use. |
Events
updated
Declaration
public event Action<ARPointCloud> updated
Event Type
Type | Description |
---|---|
Action<ARPointCloud> |