UAndroidXRSpatialDiscoveryRaycastSubsystem

#include <AndroidXRSpatialDiscoveryRaycastSubsystem.h>

The spatial discovery raycast subsystem.

Summary

Inheritance

Inherits from: UAndroidXRTrackingSubsystem

Public functions

IsRaycastDiscoverySupported(ESpatialCapability Capability) const
bool
Returns whether discovery raycast is supported for the capability.
RaycastForEntities(const FSpatialContext & SpatialContext, const FSpatialRaycastConfig & RaycastConfig, TArray< FSpatialRaycastEntityResult > & FoundEntities)
bool
Raycasts for entities tracked by a spatial context.
RaycastForPlanes(const FSpatialRaycastConfig & RaycastConfig, TArray< FSpatialRaycastPlaneResult > & FoundPlanes)
bool
Raycasts for planes.

Protected functions

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

Public functions

IsRaycastDiscoverySupported

bool IsRaycastDiscoverySupported(
  ESpatialCapability Capability
) const 

Returns whether discovery raycast is supported for the capability.

Details
Returns
True if discovery raycast is supported for the capability

RaycastForEntities

bool RaycastForEntities(
  const FSpatialContext & SpatialContext,
  const FSpatialRaycastConfig & RaycastConfig,
  TArray< FSpatialRaycastEntityResult > & FoundEntities
)

Raycasts for entities tracked by a spatial context.

Details
Parameters
The
spatial context to raycast against
The
ray configuration to perfrom the raycast with
An
array of found entities by the raycast
Returns
True if the underlying API call was successful

RaycastForPlanes

bool RaycastForPlanes(
  const FSpatialRaycastConfig & RaycastConfig,
  TArray< FSpatialRaycastPlaneResult > & FoundPlanes
)

Raycasts for planes.

Details
Parameters
The
ray configuration to perform the discovery raycast
The
planes found by the raycast

Protected functions

GetRequiredPermissions

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