unreal.LuminARFrameFunctionLibrary

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

Bases: unreal.BlueprintFunctionLibrary

A function library that provides static/Blueprint functions associated with most recent LuminAR tracking frame.

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeapAR
  • File: LuminARFunctionLibrary.h
classmethod get_light_estimation() → LuminARLightEstimate

Gets the latest light estimation.

Returns:out_light_estimate (LuminARLightEstimate): The struct that describes the latest light estimation.
Return type:LuminARLightEstimate
classmethod get_tracking_state() → LuminARTrackingState

Returns the current ARCore session status.

Returns:A EARSessionStatus enum that describes the session status.
Return type:LuminARTrackingState
classmethod lumin_ar_line_trace(world_context_object, screen_position, trace_channels) → Array(ARTraceResult) or None

Traces a ray from the user’s device in the direction of the given location in the camera view. Intersections with detected scene geometry are returned, sorted by distance from the device; the nearest intersection is returned first.

Parameters:
Returns:

True if there is a hit detected.

out_hit_results (Array(ARTraceResult)): The list of hit results sorted by distance.

Return type:

Array(ARTraceResult) or None