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

# entity(at:)

Finds the entity in the AR scene closest to the specified point.

## Declaration

```swift
@MainActor @preconcurrency func entity(at point: CGPoint) -> Entity?
```

## Parameters

- `point`: A point in the view’s coordinate system.

## Return Value

Return Value The entity at point, or nil if no entity is found.

## Discussion

Discussion The method ignores entities that lack a CollisionComponent.

## See Also

### Finding entities at a point in the view

- [entities(at:)](realitykit/arview/entities(at:).md)
- [hitTest(_:query:mask:)](realitykit/arview/hittest(_:query:mask:).md)
- [hitTest(_:types:)](realitykit/arview/hittest(_:types:).md)
- [makeRaycastQuery(from:allowing:alignment:)](realitykit/arview/makeraycastquery(from:allowing:alignment:).md)
- [raycast(from:allowing:alignment:)](realitykit/arview/raycast(from:allowing:alignment:).md)
- [trackedRaycast(from:allowing:alignment:updateHandler:)](realitykit/arview/trackedraycast(from:allowing:alignment:updatehandler:).md)
