---
title: "owner(of:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/multipeerconnectivityservice/owner(of:)"
---

# owner(of:)

Gets the device that owns a given entity.

## Declaration

```swift
@MainActor @preconcurrency func owner(of entity: Entity) -> (any SynchronizationPeerID)?
```

## Parameters

- `entity`: The entity for which you want the owner.

## Return Value

Return Value The networked device that owns the entity.

## See Also

### Managing ownership

- [giveOwnership(of:toPeer:)](realitykit/multipeerconnectivityservice/giveownership(of:topeer:).md)
