Class ARPointCloud
Represents a detected point cloud, aka feature points.
Inheritance
ARPointCloud
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.XR.ARFoundation
Syntax
[DefaultExecutionOrder(-2147483646)]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/api/UnityEngine.XR.ARFoundation.ARPointCloud.html")]
public class ARPointCloud : ARTrackable<XRPointCloud, ARPointCloud>
Properties
confidenceValues
An array of confidence values for each point in the point cloud
ranging from 0..1.
This array is parallel to positions and
identifiers. Check for existence with
confidenceValues.IsCreated
.
Declaration
public NativeArray<float>? confidenceValues { get; }
Property Value
Type | Description |
---|---|
Nullable<NativeArray<Single>> |
identifiers
An array of identifiers for each point in the point cloud. This array is parallel to positions and confidenceValues.
Declaration
public NativeSlice<ulong>? identifiers { get; }
Property Value
Type | Description |
---|---|
Nullable<NativeSlice<UInt64>> |
positions
An array of positions for each point in the point cloud. This array is parallel to identifiers and confidenceValues. Positions are provided in point cloud space, that is, relative to this ARPointCloud's local position and rotation.
Declaration
public NativeSlice<Vector3>? positions { get; }
Property Value
Type | Description |
---|---|
Nullable<NativeSlice<Vector3>> |
Events
updated
Invoked whenever the point cloud is updated.
Declaration
public event Action<ARPointCloudUpdatedEventArgs> updated
Event Type
Type | Description |
---|---|
Action<ARPointCloudUpdatedEventArgs> |