# lightmapIndex

> The index of the baked lightmap used in this draw command. If BatchDrawCommandFlags.UseLegacyLightmapsKeyword is not set, this value is ignored.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public ushort lightmapIndex
```

### Remarks

Additional Resources: [BatchDrawCommandFlags.UseLegacyLightmapsKeyword](/engine/6000.5/script-reference/unityengine/rendering/batchdrawcommandflags/uselegacylightmapskeyword.md), [Renderer.lightmapIndex](/engine/6000.5/script-reference/unityengine/renderer/lightmapindex.md).
