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

Bases: unreal.BlueprintFunctionLibrary

Magic Leap HMDFunction Library

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeap
  • File: MagicLeapHMDFunctionLibrary.h
classmethod get_head_tracking_state() → HeadTrackingState or None

Get Head Tracking State

Returns:state (HeadTrackingState):
Return type:HeadTrackingState or None
classmethod get_mlsdk_version() → str

Get MLSDKVersion

Return type:str
classmethod get_mlsdk_version_major() → int32

Get MLSDKVersion Major

Return type:int32
classmethod get_mlsdk_version_minor() → int32

Get MLSDKVersion Minor

Return type:int32
classmethod get_mlsdk_version_revision() → int32

Get MLSDKVersion Revision

Return type:int32
classmethod is_running_on_magic_leap_hmd() → bool

Returns true if this code is executing on the ML HMD, false otherwise (e.g. it’s executing on PC)

Return type:bool
classmethod set_base_orientation(base_orientation) → None

Set Base Orientation

Parameters:base_orientation (Quat) –
classmethod set_base_position(base_position) → None

Set Base Position

Parameters:base_position (Vector) –
classmethod set_base_rotation(base_rotation) → None

Set Base Rotation

Parameters:base_rotation (Rotator) –
classmethod set_focus_actor(focus_actor) → None

Set the actor whose location is used as the focus point. The focus distance is the distance from the HMD to the focus point.

Parameters:focus_actor (Actor) –