entity(at:)
Finds the entity in the AR scene closest to the specified point.
Declaration
@MainActor @preconcurrency func entity(at point: CGPoint) -> Entity?Parameters
- point:
A point in the view’s coordinate system.
Return Value
The entity at point, or nil if no entity is found.
Discussion
The method ignores entities that lack a CollisionComponent.