Class PrefabPackedIdentifiers
Generates a deterministic identifier using a MD5 hash algorithm and does not require object ordering to be deterministic. This algorithm ensures objects coming from the same asset are packed closer together and can improve loading performance under certain situations.
Inherited Members
Namespace: UnityEditor.Build.Pipeline
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
public class PrefabPackedIdentifiers : IDeterministicIdentifiers, IContextObject
Methods
GenerateInternalFileName(string)
Generates a deterministic internal file name from the passed in name.
Declaration
public virtual string GenerateInternalFileName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name identifier for internal file name generation |
Returns
| Type | Description |
|---|---|
| string | Deterministic file name. |
SerializationIndexFromObjectIdentifier(ObjectIdentifier)
Generates a deterministic id for a given object in the build.
Declaration
public virtual long SerializationIndexFromObjectIdentifier(ObjectIdentifier objectID)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjectIdentifier | objectID | Object identifier to for id generation. |
Returns
| Type | Description |
|---|---|
| long |
|