Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

Parameters

internalFileName

The internal file name for the build.

serializationIndex

The serialization index for the object.

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.

Remarks

Internal use only. See BuildReferenceMap.