docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct FileId

    A GUID/Hash pair that uniquely identifies a particular file. For each FileId, the Cache Server can store a separate binary stream for each FileType.

    Implements
    IEqualityComparer
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Build.CacheServer
    Assembly: UnityEditor.CacheServer.dll
    Syntax
    public struct FileId : IEqualityComparer

    Fields

    guid

    The guid byte array.

    Declaration
    public readonly byte[] guid
    Field Value
    Type Description
    byte[]

    hash

    The hash code byte array.

    Declaration
    public readonly byte[] hash
    Field Value
    Type Description
    byte[]

    Methods

    Equals(object, object)

    Check equality of two objects given their guid and hash code.

    Declaration
    public bool Equals(object x, object y)
    Parameters
    Type Name Description
    object x

    lhs object.

    object y

    rhs object.

    Returns
    Type Description
    bool

    From(byte[], byte[])

    Create a FileId given a byte array guid and byte array hash code.

    Declaration
    public static FileId From(byte[] guid, byte[] hash)
    Parameters
    Type Name Description
    byte[] guid

    GUID byte array.

    byte[] hash

    Hash code byte array.

    Returns
    Type Description
    FileId

    From(string, string)

    Create a FileId given a string guid and string hash code representation.

    Declaration
    public static FileId From(string guidStr, string hashStr)
    Parameters
    Type Name Description
    string guidStr

    GUID string representation.

    string hashStr

    Hash code string representation.

    Returns
    Type Description
    FileId

    GetHashCode(object)

    Get the hash code for a specific object.

    Declaration
    public int GetHashCode(object obj)
    Parameters
    Type Name Description
    object obj

    The object you want the hash code for.

    Returns
    Type Description
    int

    Implements

    IEqualityComparer
    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)