unreal.MagicLeapLightEstimationFunctionLibrary

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

Bases: unreal.BlueprintFunctionLibrary

Magic Leap Light Estimation Function Library

C++ Source:

  • Plugin: MagicLeapLightEstimation

  • Module: MagicLeapLightEstimation

  • File: MagicLeapLightEstimationFunctionLibrary.h

classmethod create_tracker()bool

Create a light estimation tracker.

Returns

true if tracker was successfully created, false otherwise

Return type

bool

classmethod destroy_tracker()None

Destroy a light estimation tracker.

classmethod get_ambient_global_state()MagicLeapLightEstimationAmbientGlobalState or None

Gets information about the ambient light sensor global state. note: Capturing images or video will stop the lighting information update, causing the retrieved data to be stale (old timestamps).

Returns

true if the global ambient state was succesfully retrieved.

global_ambient_state (MagicLeapLightEstimationAmbientGlobalState): Output param containing the information about the global lighting state (ambient intensity). Valid only if return value of function is true.

Return type

MagicLeapLightEstimationAmbientGlobalState or None

classmethod get_color_temperature_state()MagicLeapLightEstimationColorTemperatureState or None

Gets information about the color temperature state. note: Capturing images or video will stop the lighting information update, causing the retrieved data to be stale (old timestamps).

Returns

true if the color temperature state was succesfully retrieved.

color_temperature_state (MagicLeapLightEstimationColorTemperatureState): Output param containing the information about the color temperature. Valid only if return value of function is true.

Return type

MagicLeapLightEstimationColorTemperatureState or None

classmethod is_tracker_valid()bool

Check if a light estimation tracker has already been created.

Returns

true if tracker already exists and is valid, false otherwise

Return type

bool