---
title: "init(perEntityData:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lightmapresource/init(perentitydata:)"
---

# init(perEntityData:)

## Declaration

```swift
@MainActor convenience init(perEntityData: [LightmapResource.EntityLightmapDescriptor]) throws
```

## See Also

### Creating a lightmap resource

- [init(atlasTextures:perEntityData:)](realitykit/lightmapresource/init(atlastextures:perentitydata:).md)
- [LightmapResource.EntityLightmapDescriptor](realitykit/lightmapresource/entitylightmapdescriptor.md)
- [LightmapResource.MeshPartLightmapDescriptor](realitykit/lightmapresource/meshpartlightmapdescriptor.md)
