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

# GetFixedColor

> ILampInfo::GetFixedColor

# ILampInfo::GetFixedColor

返回 Lamp 是否具有固定颜色。

## 语法

```cpp theme={null}
bool GetFixedColor(
    LampArrayColor* fixedColor)
```

### 参数

*fixedColor*   \_Out\_\
类型：LampArrayColor\*

指向 Lamp 支持的固定颜色值的指针。如果此函数返回 false，则应忽略 fixedColor。

### 返回值

类型：bool

如果 Lamp 具有固定颜色则返回 true，否则返回 false。

## 要求

**头文件：** LampArray.h

**库：** xgameplatform.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[光照 API 概览](https://docs.xbox.com/zh-CN/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampInfo](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [GetBlueLevelCount](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [GetGreenLevelCount](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [GetRedLevelCount](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo（接口内容）](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [Color](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/types/game-streaming-touch-color.md)
