docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContentFileIdentifiers

    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. Sorts MonoScript types to the top of the file and is required when building ContentFiles.

    Inheritance
    object
    PrefabPackedIdentifiers
    ContentFileIdentifiers
    Implements
    IDeterministicIdentifiers
    IContextObject
    Inherited Members
    PrefabPackedIdentifiers.GenerateInternalFileName(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline.Utilities
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public class ContentFileIdentifiers : PrefabPackedIdentifiers, IDeterministicIdentifiers, IContextObject

    Methods

    SerializationIndexFromObjectIdentifier(ObjectIdentifier)

    Generates a deterministic id for a given object in the build.

    Declaration
    public override long SerializationIndexFromObjectIdentifier(ObjectIdentifier objectID)
    Parameters
    Type Name Description
    ObjectIdentifier objectID

    Object identifier to for id generation.

    Returns
    Type Description
    long

    long representing the id of the objectID.

    Overrides
    PrefabPackedIdentifiers.SerializationIndexFromObjectIdentifier(ObjectIdentifier)

    Implements

    IDeterministicIdentifiers
    IContextObject
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)