unreal.MagicLeapLocationFunctionLibrary¶
- class unreal.MagicLeapLocationFunctionLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibraryMagic 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
- 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
result_delegate (MagicLeapLocationResultDelegate) –
use_fine_location (bool) – Flags whether or not to request a fine or coarse location.
- Returns
True if the location is immediately resolved, false otherwise.
- Return type
- 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
- 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
- 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
result_delegate (MagicLeapLocationOnSphereResultDelegate) –
radius (float) – The radius of the sphere that the location will be projected onto.
use_fine_location (bool) – Flags whether or not to request a fine or coarse location.
- Returns
True if the location is immediately resolved, false otherwise.
- Return type