---
title: "init(layers:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/renderlayercomponent/init(layers:)"
---

# init(layers:)

Creates a layer component with the specified layers.

## Declaration

```swift
init(layers: RenderLayer.Set)
```

## Parameters

- `layers`: The layers this entity participates in

## See Also

### Creating a component

- [init(layer:)](realitykit/renderlayercomponent/init(layer:).md)
