Class LinearPackedIdentifiers | Scriptable Build Pipeline | 1.5.10
docs.unity3d.com
    Show / Hide Table of Contents

    Class LinearPackedIdentifiers

    Generates identifiers linearly for built content. Only deterministic if object order and initial Index is deterministic.

    Inheritance
    Object
    LinearPackedIdentifiers
    Namespace: UnityEditor.Build.Pipeline
    Syntax
    public class LinearPackedIdentifiers : IDeterministicIdentifiers, IContextObject

    Constructors

    LinearPackedIdentifiers(Int64)

    Default constructor, takes an initial index at which to start linear id assignment.

    Declaration
    public LinearPackedIdentifiers(long index)
    Parameters
    Type Name Description
    Int64 index

    Initial index at which to start linear id assignment.

    Properties

    Index

    The index at which to start linear id assignment.

    Declaration
    public long Index { get; set; }
    Property Value
    Type Description
    Int64

    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
    IDeterministicIdentifiers.GenerateInternalFileName(String)

    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

    long representing the id of the objectID.

    Implements
    IDeterministicIdentifiers.SerializationIndexFromObjectIdentifier(ObjectIdentifier)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023