UMagicLeapLocationComponent

Component that provides access to the Location API functionality.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MagicLeapLocation

Header

/Engine/Plugins/Lumin/MagicLeapLocation/Source/MagicLeapLocation/Public/MagicLeapLocationComponent.h

Include

#include "MagicLeapLocationComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=MagicLeap, BlueprintType, Blueprintable, EditInlineNew,
       Meta=(BlueprintSpawnableComponent))
class UMagicLeapLocationComponent : public UActorComponent

Remarks

Component that provides access to the Location API functionality.

Functions

Name Description

Public function UFunction BlueprintCallable, Category

bool

 

GetLastLocation

(
    FMagicLeapLocationData& OutLocatio...,
    bool bUseFineLocation
)

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

Public function UFunction BlueprintCallable, Category

bool

 

GetLastLocationAsync

(
    bool bUseFineLocation
)

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

Public function UFunction BlueprintCallable, Category

bool

 

GetLastLocationOnSphere

(
    float InRadius,
    FVector& OutLocation,
    bool bUseFineLocation
)

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

Public function UFunction BlueprintCallable, Category

bool

 

GetLastLocationOnSphereAsync

(
    float InRadius,
    bool bUseFineLocation
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss