docs.unity3d.com
Search Results for

    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
    Implements
    IDeterministicIdentifiers
    IContextObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public class LinearPackedIdentifiers : IDeterministicIdentifiers, IContextObject

    Constructors

    LinearPackedIdentifiers(long)

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

    Declaration
    public LinearPackedIdentifiers(long index)
    Parameters
    Type Name Description
    long 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
    long

    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

    long representing the id of the objectID.

    Implements

    IDeterministicIdentifiers
    IContextObject
    In This Article
    Back to top
    Copyright © 2024 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)