An type of gesture recognizer that works on entities.
SDKs
- iOS 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
protocol EntityGestureRecognizer : UIGesture Recognizer
An type of gesture recognizer that works on entities.
SDKs
Framework
protocol EntityGestureRecognizer : UIGesture Recognizer
var entity: Has Collision?
The entity on which the recognizer operates.
Required.
func location(in: Entity?) -> SIMD3<Float>?
Required. Default implementation provided.
func install Gestures(ARView .Entity Gestures, for: Has Collision) -> [Entity Gesture Recognizer]
Installs standard gestures onto the given entity, configured to be recognized simultaneously.
struct ARView .Entity Gestures
The set of possible entity gesture recognizers.
func gesture Recognizer(UIGesture Recognizer, should Recognize Simultaneously With: UIGesture Recognizer) -> Bool
Determines whether two gesture recognizers should simultaneously recognize a gesture.
class Entity Rotation Gesture Recognizer
A gesture recognizer that uses rotation gestures involving two touches to rotate a given entity.
class Entity Scale Gesture Recognizer
A gesture recognizer that uses a pinch gesture to scale or zoom an entity.
class Entity Translation Gesture Recognizer
A gesture recognizer that uses a pan gesture to move an entity.