---
title: "init(entityType:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/sceneunderstandingcomponent/init(entitytype:)"
---

# init(entityType:)

Creates a component for the given entity type that makes an entity aware of certain aspects of the physical environment.

## Declaration

```swift
init(entityType: SceneUnderstandingComponent.EntityType?)
```

## Parameters

- `entityType`: The entity type to make the component for.

## See Also

### Initializing a scene-understanding component

- [init()](realitykit/sceneunderstandingcomponent/init().md)
