# Dispose()

> Finishes writing all tracks and closes the file being written.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Media](/engine/6000.0/script-reference/unityeditor/media.md)
* **Assembly:** UnityEditor

```csharp
public void Dispose()
```
