Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

BuildReferenceMap.AddMapping

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void AddMapping(string internalFileName, long serializationIndex, ObjectIdentifier objectID, bool overwrite);

Parameters

Parameter Description
internalFileName The internal file name for the build.
serializationIndex The serialization index for the object.
objectID The ObjectIdentifier for the object.
overwrite If true, any existing mapping for the object is overwritten. If false, an exception is thrown if a mapping already exists for the object.

Description

Adds a mapping for a single Object to where it will be serialized out to the build.

Internal use only. See BuildReferenceMap.