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_location(use_fine_location=True)MagicLeapLocationData or None

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

Parameters

use_fine_location (bool) – Flags whether or not to request a fine or coarse location.

Returns

True if the location data is valid, false otherwise.

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

Return type

MagicLeapLocationData or None

classmethod get_last_location_async(result_delegate, use_fine_location=True)bool

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

Parameters
Returns

True if the location is immediately resolved, false otherwise.

Return type

bool

classmethod get_last_location_on_sphere(radius, use_fine_location=True)Vector or None

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

Parameters
  • radius (float) –

  • use_fine_location (bool) – Flags whether or not to request a fine or coarse location.

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

classmethod get_last_location_on_sphere_async(result_delegate, radius, use_fine_location=True)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