unreal.MagicLeapLocationFunctionLibrary

class unreal.MagicLeapLocationFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Magic Leap Location Function Library

C++ Source:

  • Plugin: MagicLeapLocation
  • Module: MagicLeapLocation
  • File: MagicLeapLocationFunctionLibrary.h
classmethod get_last_coarse_location() → LocationData or None

Attempts to retrieve the latitude, longitude and postcode of the device.

Returns:True if the location data is valid, false otherwise.

out_location (LocationData): If successful this will contain the latitude, longitude and postcode of the device.

Return type:LocationData or None
get_last_coarse_location_async(result_delegate) → bool

Attempts to retrieve the latitude, longitude and postcode of the device asynchronously.

Parameters:result_delegate (CoarseLocationResultDelegate) –
Returns:True if the location is immediately resolved, false otherwise.
Return type:bool
classmethod get_last_coarse_location_on_sphere(radius) → Vector or None

Attempts to retrieve a point on a sphere representing the location of the device.

Parameters:radius (float) –
Returns:True if the location is valid, false otherwise.

out_location (Vector): If successful this will be a valid point on a sphere representing the location of the device.

Return type:Vector or None
get_last_coarse_location_on_sphere_async(result_delegate, radius) → bool

Attempts to retrieve a point on a sphere representing the location of the device asynchronously.

Parameters:
Returns:

True if the location is immediately resolved, false otherwise.

Return type:

bool