attach(_:to:)
Attach an entity to a target pin owned by another entity with an optional specified source pin This utility function has the same effect of adding an AttachedTransformComponent created with the same parameter to the entity you are calling upon
Declaration
@MainActor func attach(_ source: GeometricPin? = nil, to target: GeometricPin)Parameters
- source:
The optional source pin existed on the current entity
- target:
The target pin existed on the target entity