> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ILampArray::SetIsEnabled method

> Enables or disables lighting control from the current process for a LampArray peripheral, letting titles pause and resume their RGB effects.

# ILampArray::SetIsEnabled

Sets the enabled state of an ILampArray for the current process.

## Syntax

```cpp theme={null}
void SetIsEnabled(
    bool isEnabled)
```

### Parameters

*isEnabled*\
Type: bool

The desired enabled state of the ILampArray.

### Return value

Type: void

## Remarks

When disabled, state for Lamps can be set internally, but will not be sent to the device. When set back to enabled, modified Lamp state is flushed to the device.

By default, ILampArrays are always enabled.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetIsEnabled](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getisenabled)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::GetIsEnabled method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getisenabled.md)
- [ILampArray::SetColor method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
- [ILampArray::SetColorsForIndices method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
- [ILampArray::SetColorsForScanCodes method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md)
- [ILampArray::SetBrightnessLevel method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setbrightnesslevel.md)
