---
title: "entity(for:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/synchronizationservice/entity(for:)"
---

# entity(for:)

Gets the entity with the given identifier.

## Declaration

```swift
@MainActor @preconcurrency func entity(for identifier: Self.Identifier) -> Entity?
```

## Parameters

- `identifier`: The identifier.

## Return Value

Return Value The entity with the corresponding identifier.
