<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityGestureRecognizer",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit23EntityGestureRecognizerP"
  },
  "title" : "EntityGestureRecognizer"
}
-->

# EntityGestureRecognizer

A gesture recognizer that works on entities.

```
protocol EntityGestureRecognizer : UIGestureRecognizer
```

## Topics

### Using the gesture recognizer

[`var entity: (any HasCollision)?`](/documentation/RealityKit/EntityGestureRecognizer/entity)

The entity the receiver is associated with

[`func location(in: Entity?) -> SIMD3<Float>?`](/documentation/RealityKit/EntityGestureRecognizer/location(in:))

Returns the unprojected location of the gesture represented by the receiver in the space of the given entity.

## Relationships

### Conforming Types

[`EntityRotationGestureRecognizer`](/documentation/RealityKit/EntityRotationGestureRecognizer)

[`EntityScaleGestureRecognizer`](/documentation/RealityKit/EntityScaleGestureRecognizer)

[`EntityTranslationGestureRecognizer`](/documentation/RealityKit/EntityTranslationGestureRecognizer)

### Inherits From

[`UIGestureRecognizer`](/documentation/UIKit/UIGestureRecognizer)

---

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)