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

# entity

The entity the receiver is associated with

## Declaration

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

## See Also

### Using the recognizer

- [canPrevent(_:)](realitykit/entityscalegesturerecognizer/canprevent(_:).md)
- [touchesBegan(_:with:)](realitykit/entityscalegesturerecognizer/touchesbegan(_:with:).md)
