---
title: targetedEntity
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spatialeventcollection/event/targetedentity
---

# targetedEntity

The entity target for this touch, if one exists.

## Declaration

```swift
var targetedEntity: Entity?
```

## See Also

### Locating the event

- [location](swiftui/spatialeventcollection/event/location.md)
- [location3D](swiftui/spatialeventcollection/event/location3d.md)
- [selectionRay](swiftui/spatialeventcollection/event/selectionray.md)
- [inputDevicePose](swiftui/spatialeventcollection/event/inputdevicepose-swift.property.md)
- [SpatialEventCollection.Event.InputDevicePose](swiftui/spatialeventcollection/event/inputdevicepose-swift.struct.md)
