Contents

targetedToEntity(where:)

Requires this gesture to target an entity that can be found in the results of the query.

Declaration

@MainActor @preconcurrency func targetedToEntity(where query: QueryPredicate<Entity>) -> some Gesture<EntityTargetValue<Self.Value>>

Parameters

  • query:

    A query to filter which entity the gesture targets.

Return Value

A RealityCoordinateSpaceConverting value containing the original gesture value along with the targeted entity.

See Also

Using a gesture with a RealityKit entity