---
title: selectionRay
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spatialeventcollection/event/selectionray
---

# selectionRay

The 3D ray used to target the touch.

## Declaration

```swift
var selectionRay: Ray3D?
```

## See Also

### Locating the event

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