Class ARPointCloudManager
Creates and updates a GameObject
under the ARSessionOrigin's TrackablesParent
to represent a point cloud.
When enabled, this component subscribes to pointCloudUpdated event. If this component is disabled, and there are no other subscribers to that event, point clouds will be disabled.
Inheritance
System.Object
ARPointCloudManager
Namespace: UnityEngine.XR.ARFoundation
Syntax
public sealed class ARPointCloudManager : MonoBehaviour
Properties
pointCloud
Getter for the instantiated ARPointCloud.
Declaration
public ARPointCloud pointCloud { get; }
Property Value
Type | Description |
---|---|
ARPointCloud |
pointCloudPrefab
Getter/setter for the Point Cloud Prefab.
Declaration
public GameObject pointCloudPrefab { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Events
pointCloudUpdated
Raised each time the ARPointCloud is updated.
Declaration
public event Action<ARPointCloudUpdatedEventArgs> pointCloudUpdated
Event Type
Type | Description |
---|---|
Action<ARPointCloudUpdatedEventArgs> |