One Logo Pool Ball
RealityKit · IOS API REFERENCE

EntityGestureRecognizer

protocol · iOS 13.0+ · SDK 27.1

protocol EntityGestureRecognizer : UIGestureRecognizer

A gesture recognizer that works on entities.

Members (1)

method · iOS 13.0+

location

Swift declaration
func location(in entity: Entity?) -> SIMD3<Float>?

Returns the unprojected location of the gesture represented by the receiver in the space of the given entity. - Parameters: - entity: An entity in whose space the location is computed. A `nil` entity will result in world space. - Returns: The 3D position identifying the location of the gesture in the space specified. The location is typically the result of a centroid of touches for a gesture, unprojected onto the associated `entity`, and then converted into the space of the entity passed in, or world space if `nil` is passed in.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityKit types →