---
title: entity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/entityrotationgesturerecognizer/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/entityrotationgesturerecognizer/canprevent(_:).md)
- [touchesBegan(_:with:)](realitykit/entityrotationgesturerecognizer/touchesbegan(_:with:).md)
