---
title: entity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/entitygesturerecognizer/entity
---

# entity

The entity the receiver is associated with

## Declaration

```swift
var entity: (any HasCollision)? { get set }
```

## See Also

### Using the gesture recognizer

- [location(in:)](realitykit/entitygesturerecognizer/location(in:).md)
