AddMapping(string, long, ObjectIdentifier, bool)
Adds a mapping for a single Object to where it will be serialized out to the build.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Build.Content
- Assembly: UnityEditor.CoreModule
public void AddMapping(string internalFileName, long serializationIndex, ObjectIdentifier objectID, bool overwrite = false)
Parameters
The internal file name for the build.
The serialization index for the object.
The ObjectIdentifier for the object.
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.