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

# ILampInfo::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 概览](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetBlueLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getbluelevelcount.md)
- [ILampInfo::GetGreenLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getgreenlevelcount.md)
- [ILampInfo::GetRedLevelCount](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getredlevelcount.md)
- [ILampInfo::GetNearestSupportedColor](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetIndex](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
