# AddAdditionalPathToStreamingAssets(string, string)

> Add additional streaming assets to the built player data. For example, you can include AssetBundles or other streaming assets without first putting them in the project StreamingAssets folder.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build](/engine/6000.6/script-reference/unityeditor/build.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void AddAdditionalPathToStreamingAssets(string directoryOrFile, string pathInStreamingAssets = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path representing an existing file or directory. If the path doesn't exist, this function throws a FileNotFoundException.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path within the StreamingAssets folder at which to place the additional assets. If null, the file or directory is placed directly in the StreamingAssets folder.

### Remarks

You can add a single file or an entire directory.

If a file or directory with the same destination path has already been added to the BuildPlayerContext, then this function throws an ArgumentException.

If a file or directory with the same destination path already exists in the project, an exception is thrown later in the build process.
