# AddMapping(string, long, ObjectIdentifier, bool)

> Adds a mapping for a single Object to where it 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 AddMapping(string internalFileName, long serializationIndex, ObjectIdentifier objectID, bool overwrite = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The internal file name for the build.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The serialization index for the object.**** (\[ObjectIdentifier]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The ObjectIdentifier for the object.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, any existing mapping for the object is overwritten. If false, an exception is thrown if a mapping already exists for the object.

### Remarks

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