---
title: "write(to:options:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entity/write(to:options:)"
---

# write(to:options:)

## Declaration

```swift
nonisolated(nonsending) func write(to url: URL, options: Entity.WriteOptions) async throws
```

## See Also

### Writing an entity to a file

- [write(_:to:options:)](realitykit/entity/write(_:to:options:).md)
- [Entity.WriteOptions](realitykit/entity/writeoptions.md)
- [Entity.WriteError](realitykit/entity/writeerror.md)
