Class ARPointCloudManager
A manager for ARTrackedObjects. Uses the XRDepthSubsystem
to recognize and track depth data in the physical environment.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483647)]
[RequireComponent(typeof(ARSessionOrigin))]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARPointCloudManager.html")]
public class ARPointCloudManager : ARTrackableManager<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider, XRPointCloud, ARPointCloud>
Properties
Name | Description |
---|---|
gameObjectName | The name to be used for the |
pointCloudPrefab | Getter or setter for the Point Cloud Prefab. |
Methods
Name | Description |
---|---|
GetPrefab() | The Prefab that will be instantiated for each ARPointCloud. Can be |
OnAfterSetSessionRelativeData(ARPointCloud, XRPointCloud) | Invoked after each point cloud is updated with new data. |
OnDisable() | Invoked when this |
OnEnable() | Invoked when this |
OnTrackablesChanged(List<ARPointCloud>, List<ARPointCloud>, List<ARPointCloud>) | Invokes the pointCloudsChanged event. |
Raycast(Ray, TrackableType, Allocator) | Implementation for the |
Events
Name | Description |
---|---|
pointCloudsChanged | Invoked once per frame with information about the ARTrackedObjects that have changed, that is, been added, updated, or removed.
This happens just before ARTrackedObjects are destroyed, so you can set |