> ## 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

> ILampArray::SetIsEnabled

# ILampArray::SetIsEnabled

現在のプロセスに対する ILampArray の有効状態を設定します。

## 構文

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

### パラメーター

*isEnabled*\
Type: bool

ILampArray の望ましい有効状態です。

### 戻り値

Type: void

## 解説

無効化されている場合、Lamp の状態は内部的に設定できますが、デバイスには送信されません。有効に戻すと、変更された Lamp の状態がデバイスにフラッシュされます。

既定では、ILampArray は常に有効になっています。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](/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](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getisenabled.md)
- [ILampArray::SetColor](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
- [ILampArray::SetColorsForIndices](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforindices.md)
- [ILampArray::SetColorsForScanCodes](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolorsforscancodes.md)
- [ILampArray::SetBrightnessLevel](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setbrightnesslevel.md)
