<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Scene/findEntity(id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5SceneC10findEntity2idAA0E0CSgs6UInt64V_tF"
  },
  "title" : "findEntity(id:)"
}
-->

# findEntity(id:)

Returns `Entity` with the given `Entity.ID` in the `Scene`.

```
@MainActor @preconcurrency func findEntity(id: Entity.ID) -> Entity?
```

## Parameters

`id`

`Entity.ID` obtained from `Entity.id`

## Return Value

`Entity` with the given `Entity.ID`, or `nil` if no such `Entity` is found in the `Scene`.

## Discussion> Note:    This method uses efficient mapping from `Entity.ID` to `Entity`, not linear traversal of all Entities in the `Scene`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)