Class Unity5PackedIdentifiers
Generates a deterministic identifier using a MD4 hash algorithm and does not require object ordering to be deterministic.
This algorithm generates identical results to what is used internally in BuildPipeline.BuildAssetbundles
.
Namespace: UnityEditor.Build.Pipeline
Syntax
public class Unity5PackedIdentifiers : object, 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. |
Implements
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 |
---|---|
Int64 |
|