# UAndroidXRSpatialPlaneTrackingSubsystem

`#include <AndroidXRSpatialPlaneTrackingSubsystem.h>`

The plane tracking subsystem.

<br />

## Summary

### Inheritance

Inherits from: [`UAndroidXRSpatialEntitiesSubsystem`](https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialEntitiesSubsystem)

| ### Public attributes ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#onspatialplaneadded {}` | `FSpatialPlaneChangedDelegate` The callback for when a spatial plane is added. |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#onspatialplaneremoved {}` | `FSpatialPlaneChangedDelegate` The callback for when a spatial plane is removed. |

| ### Public functions ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#gettrackedplanes(TArray< https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneEntity#class_u_android_x_r_spatial_plane_entity * > & TrackedPlanes, bool bShouldUpdate)` | `void` Get the planes being currently tracked. |

| ### Protected functions ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#bindentityevents() override` | `virtual void` |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#getcapabilitymodule() override` | `virtual https://developer.android.com/develop/xr/unreal/reference/class/FAndroidXRSpatialCapabilityModule#class_f_android_x_r_spatial_capability_module *` |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#getrequiredpermissions(TArray< FString > & Permissions) override` | `virtual void` |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialPlaneTrackingSubsystem#unbindentityevents() override` | `virtual void` |

## Public attributes

### OnSpatialPlaneAdded

```
FSpatialPlaneChangedDelegate OnSpatialPlaneAdded {}
```
The callback for when a spatial plane is added.

### OnSpatialPlaneRemoved

```
FSpatialPlaneChangedDelegate OnSpatialPlaneRemoved {}
```
The callback for when a spatial plane is removed.

## Public functions

### GetTrackedPlanes

```
void GetTrackedPlanes(
  TArray< UAndroidXRSpatialPlaneEntity * > & TrackedPlanes,
  bool bShouldUpdate
)
```
Get the planes being currently tracked.

<br />

Details Parameters `The` tracked planes `Whether` to force an update before updating the tracked planes array

## Protected functions

### BindEntityEvents

```
virtual void BindEntityEvents() override
```

### GetCapabilityModule

```
virtual FAndroidXRSpatialCapabilityModule * GetCapabilityModule() override
```

### GetRequiredPermissions

```
virtual void GetRequiredPermissions(
  TArray< FString > & Permissions
) override
```

### UnbindEntityEvents

```
virtual void UnbindEntityEvents() override
```