owner(of:)
Gets the device that owns a given entity.
Declaration
@MainActor @preconcurrency func owner(of entity: Entity) -> (any SynchronizationPeerID)?Parameters
- entity:
The entity for which you want the owner.
Return Value
The networked device that owns the entity.