UMagicLeapControllerFunctionLibrary

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UBlueprintFunctionLibrary

UMagicLeapControllerFunctionLibrary

References

Module

MagicLeapController

Header

/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeapController/Public/MagicLeapControllerFunctionLibrary.h

Include

#include "MagicLeapControllerFunctionLibrary.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=MagicLeap)
class UMagicLeapControllerFunctionLibrary : public UBlueprintFunctionLibrary

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category

bool

 

GetControllerMapping

(
    int32 ControllerIndex,
    EControllerHand& Hand
)

Returns the hand to which given controller index has been mapped to in the device backend.

Public function Static UFunction BlueprintCallable, Category

EMagicLeapCo...

 

GetControllerTrackingMode()

Get controller tracking mode.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

EMagicLeapCo...

 

GetControllerType

(
    FName MotionSource
)

Type of ML device bound to the specified motion source

Public function Static UFunction BlueprintCallable, Category

EControllerH...

 

GetHandForMotionSource

(
    FName MotionSource
)

Get motion source for hand.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

EMagicLeapCo...

 

GetMLControllerType

(
    EControllerHand Hand
)

Type of ML device being tracking the given hand.

Public function Static UFunction BlueprintCallable, Category

FName

 

GetMotionSourceForHand

(
    EControllerHand Hand
)

Get motion source for hand.

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

InvertControllerMapping()

Inverts the controller mapping i.e. keys mapped to left hand controller will now be treated as right hand and vice-versa.

Public function Static UFunction BlueprintCallable, BlueprintPure, Category

bool

 

IsMLControllerConnected

(
    FName MotionSource
)

Checks if the ML controller (MagicLeapControl0, MagicLeapControl1, MagicLeapMobileApp) of the given motion source is currently connected.

Public function Static UFunction BlueprintCallable, Category, Meta

int32

 

MaxSupportedMagicLeapControllers()

DEPRECATED FUNCTIONS.

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

PlayControllerHapticFeedback

Play haptic feedback on the controller.

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

PlayControllerLED

(
    EControllerHand Hand,
    EMagicLeapControllerLEDPattern LEDP...,
    EMagicLeapControllerLEDColor LEDCol...,
    float DurationInSec
)

Light up the LED on the Magic Leap Controller in the given pattern for the specified duration.

Public function Static UFunction BlueprintCallable, Category, Meta

bool

 

PlayControllerLEDEffect

(
    EControllerHand Hand,
    EMagicLeapControllerLEDEffect LEDEf...,
    EMagicLeapControllerLEDSpeed LEDSpe...,
    EMagicLeapControllerLEDPattern LEDP...,
    EMagicLeapControllerLEDColor LEDCol...,
    float DurationInSec
)

Starts a LED feedback effect using the specified pattern on the specified controller.

Public function Static UFunction BlueprintCallable, Category

bool

 

PlayHapticPattern

(
    FName MotionSource,
    EMagicLeapControllerHapticPattern H...,
    EMagicLeapControllerHapticIntensity...
)

Play haptic feedback on the controller.

Public function Static UFunction BlueprintCallable, Category

bool

 

PlayLEDEffect

(
    FName MotionSource,
    EMagicLeapControllerLEDEffect LEDEf...,
    EMagicLeapControllerLEDSpeed LEDSpe...,
    EMagicLeapControllerLEDPattern LEDP...,
    EMagicLeapControllerLEDColor LEDCol...,
    float DurationInSec
)

Starts a LED feedback effect using the specified pattern on the specified controller.

Public function Static UFunction BlueprintCallable, Category

bool

 

PlayLEDPattern

(
    FName MotionSource,
    EMagicLeapControllerLEDPattern LEDP...,
    EMagicLeapControllerLEDColor LEDCol...,
    float DurationInSec
)

Light up the LED on the Magic Leap Controller in the given pattern for the specified duration.

Public function Static UFunction BlueprintCallable, Category

bool

 

SetControllerTrackingMode

Set controller tracking mode.

that this is global (it affects all control devices).

Public function Static UFunction BlueprintCallable, Category

bool

 

SetMotionSourceForHand

(
    EControllerHand Hand,
    FName MotionSource
)

Set motion source for hand.

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