# AddMappings(string, SerializationInfo[], bool)

> Adds mappings for a set of Objects to where they will be serialized out to the build.

## Definition

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

```csharp
public void AddMappings(string internalFileName, SerializationInfo[] objectIDs, bool overwrite = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The internal file name for the build.**** (\[SerializationInfo\[]]\(/engine/6000.7/script-reference/unityeditor/build/content/serializationinfo)): An array of SerializationInfo structs for the objects.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, any existing mapping for the objects is overwritten. If false, an exception is thrown if a mapping already exists for any of the objects.

### Remarks

Internal use only. See [BuildReferenceMap](/engine/6000.7/script-reference/unityeditor/build/content/buildreferencemap.md).
