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_tracking_state() → LuminARTrackingState¶
Returns the current ARCore session status. deprecated: Use GetTrackingQuality() & GetHeadTrackingMapEvents()
- Returns
A EARSessionStatus enum that describes the session status.
- Return type
- 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
world_context_object (Object) – The world context.
screen_position (Vector2D) – The position on the screen to cast the ray from.
trace_channels (Set(LuminARLineTraceChannel)) –
- 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