Skip to main content
Version: 14 Oct 2024

MLGlobalDimmer

NameSpace: MagicLeap

Public Methods

MLResult SetValue

Set the manual value for the global dimmer Updates are reflected in the next client submitted frame. Global dimmer update through this func is applicable only if auto dimmer is disabled. Any smooth ramping from auto dimmer to application final dimmer should be handled by the application itself. Since the dimmer value set through this func is reflected only in the next client submitted frame, the smooth ramp stepping interval is equal to current application frame rate

public static MLResult SetValue(
float dimmerValue,
bool enabled =true
)

Parameters

TypeNameDescription
floatdimmerValuedimmer value in valid range [0.0 to 1.0]. 0.0 corresponds no global dimming while 1.0 corresponds to max global dimming.
boolenabledEnable or disable the global dimmer.