UGoogleARCoreSessionFunctionLibrary

#include <GoogleARCoreFunctionLibrary.h>

A function library that provides static/Blueprint functions associated with GoogleARCore session.

Summary

Inheritance

Inherits from: UBlueprintFunctionLibrary

Public attributes

meta = (Latent, LatentInfo = "LatentInfo", WorldContext = "WorldContextObject", Keywords = "googlear arcore availability")) static void CheckARCoreAvailability( UObject* WorldContextObject, struct FLatentActionInfo LatentInfo, EGoogleARCoreAvailability& OutAvailability)
A Latent Action to check the availability of ARCore on this device.

Public static functions

CheckARCoreAvailableStatus()
EGoogleARCoreAvailability
A polling function to check the ARCore availability in C++.
GetARCoreAPKInstallResult()
EGoogleARCoreInstallRequestResult
A polling function to check the ARCore install request result in C++.
GetAllTrackable(TArray< T * > & OutTrackableList)
void
Template function to get all trackables from a given type.
RequestInstallARCoreAPK()
EGoogleARCoreInstallStatus
Initiates installation of ARCore if required.

Public attributes

meta

 meta = (Latent, LatentInfo = "LatentInfo",
                    WorldContext = "WorldContextObject",
                    Keywords = "googlear arcore availability"))
  static void CheckARCoreAvailability(
      UObject* WorldContextObject, struct FLatentActionInfo LatentInfo,
      EGoogleARCoreAvailability& OutAvailability)

A Latent Action to check the availability of ARCore on this device.

Gets a list of all valid UARTrackedPoint objects that ARCore is currently tracking.

Gets a list of all valid UARPlaneGeometry objects that ARCore is currently tracking.

Gets the texture coordinate information about the passthrough camera texture.

Enables/Disables the passthrough camera rendering in GoogleARCore ARSystem.

Returns the state of the passthrough camera rendering in GoogleARCore ARSystem.

Starts a new ARCore tracking session GoogleARCore specific configuration.

A Latent Action to initiates installation of ARCore if required.

This may initiate a query with a remote service to determine if the device is supported by ARCore. The Latent Action will complete when the check is finished.

This function may cause your application be paused if installing ARCore is required.

Details
Parameters
OutAvailability
The availability result as a EGoogleARCoreAvailability.

If the session already started and the config isn't the same, it will stop the previous session and start a new session with the new config. Note that this is a latent action, you can query the session start result by querying GetARCoreSessionStatus() after the latent action finished.

Details
Parameters
OutInstallResult
The install request result as a EGoogleARCoreInstallRequestResult.

Note that when passthrough camera rendering is enabled, the camera FOV will be forced to match FOV of the physical camera on the device.

Details
Parameters
Configuration
The ARCoreSession configuration to start the session.
Returns
True if the passthrough camera rendering is enabled.

Planes that have entered the EARTrackingState::StoppedTracking state or for which UARPlaneGeometry::GetSubsumedBy returns non-null will not be included.

Details
Parameters
InUV
The original UVs of on the quad. Should be an array with 8 floats.
OutUV
The orientated UVs that can be used to sample the passthrough camera texture and make sure it is displayed correctly.

TrackablePoint that have entered the EARTrackingState::StoppedTracking state will not be included.

Details
Parameters
OutAnchorList
An array that contains all the valid planes detected by ARCore.

Details
Parameters
OutAnchorList
An array that contains all the valid planes detected by ARCore.

Public static functions

CheckARCoreAvailableStatus

EGoogleARCoreAvailability CheckARCoreAvailableStatus()

A polling function to check the ARCore availability in C++.

This may initiate a query with a remote service to determine if the device is supported by ARCore, so this function will EGoogleARCoreAvailability::UnknownChecking.

Details
Returns
The availability result as a EGoogleARCoreAvailability.

GetARCoreAPKInstallResult

EGoogleARCoreInstallRequestResult GetARCoreAPKInstallResult()

A polling function to check the ARCore install request result in C++.

After you call RequestInstallARCoreAPK() and it returns EGoogleARCoreInstallStatus::Requrested. You can call this function to check the install requst result.

Details
Returns
The install request result as a EGoogleARCoreInstallRequestResult.

GetAllTrackable

void GetAllTrackable(
  TArray< T * > & OutTrackableList
)

Template function to get all trackables from a given type.

RequestInstallARCoreAPK

EGoogleARCoreInstallStatus RequestInstallARCoreAPK()

Initiates installation of ARCore if required.

This function will return immediately and may pause your application if installing ARCore is required.

Details
Returns
EGoogleARCoreInstallStatus::Requrested if it started a install request.

Send feedback about...