One Logo Pool Ball
_RealityKit_SwiftUI · IOS API REFERENCE

EntityTargetValue

struct · iOS 18.0+ · SDK 27.1

@dynamicMemberLookup struct EntityTargetValue<Value>

A value containing an original gesture value along with a targeted entity. Spatial data from a <doc://com.apple.documentation/documentation/swiftui/draggesture/value/location> returned by a gesture can be converted to and from the entity using functions defined in ``RealityCoordinateSpaceConverting``. For example, here's how to convert <doc://com.apple.documentation/documentation/swiftui/draggesture/value/location> from a <doc://com.apple.documentation/documentation/swiftui/draggesture> to the parent of an ``Entity``: ```swift DragGesture(coordinateSpace: .global).targetedToEntity().updating($state) { state, value, _ in let location = value.convert( value.location, from: .global, to: value.entity.parent ) ... } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

8 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

EntityTargetValue.project(point:to:)

This parameter hides a concrete Swift type.

EntityTargetValue.unproject(_:from:to:ontoPlane:)

This parameter hides a concrete Swift type.

EntityTargetValue.ray(through:in:to:)

This parameter hides a concrete Swift type.

EntityTargetValue.entity(at:in:)

This parameter hides a concrete Swift type.

EntityTargetValue.entities(at:in:)

This parameter hides a concrete Swift type.

EntityTargetValue.hitTest(point:in:query:mask:)

This parameter hides a concrete Swift type.

EntityTargetValue.unproject(_:to:)

This parameter hides a concrete Swift type.

EntityTargetValue.unproject(_:from:to:)

This parameter hides a concrete Swift type.

All _RealityKit_SwiftUI types →