docs.unity3d.com
    Show / Hide Table of Contents

    Struct CacheEntry

    Creates a container to store data in build cache.

    Namespace: UnityEditor.Build.Pipeline.Utilities
    Syntax
    [Serializable]
    public struct CacheEntry : IEquatable<CacheEntry>

    Properties

    File

    Stores the entry file name.

    Declaration
    public string File { get; }
    Property Value
    Type Description
    String

    Guid

    Stores the entry guid.

    Declaration
    public GUID Guid { get; }
    Property Value
    Type Description
    UnityEditor.GUID

    Hash

    Stores the entry hash.

    Declaration
    public Hash128 Hash { get; }
    Property Value
    Type Description
    Hash128

    ScriptType

    Stores the entry scripting type.

    Declaration
    public string ScriptType { get; }
    Property Value
    Type Description
    String

    Type

    Stores the entry type.

    Declaration
    public CacheEntry.EntryType Type { get; }
    Property Value
    Type Description
    CacheEntry.EntryType

    Version

    Stores the entry version.

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    Int32

    Methods

    Equals(Object)

    Determines if the current entry instance is equal to the specified entry.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The entry to compare.

    Returns
    Type Description
    Boolean

    Returns true if the entries are equivalent. Returns false otherwise.

    Overrides
    ValueType.Equals(Object)

    Equals(CacheEntry)

    Determines if the current entry instance is equal to the specified entry.

    Declaration
    public bool Equals(CacheEntry other)
    Parameters
    Type Name Description
    CacheEntry other

    The entry to compare.

    Returns
    Type Description
    Boolean

    Returns true if the entries are equivalent. Returns false otherwise.

    GetHashCode()

    Creates the hash code for the cache entry.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Returns the hash code for the cache entry.

    Overrides
    ValueType.GetHashCode()

    IsValid()

    Determines if the entry is valid.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    Boolean

    Returns true if the entry is valid. Returns false otherwise.

    ToString()

    Converts the information about the cache entry to a formatted string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Returns information about the cache entry.

    Overrides
    ValueType.ToString()

    Operators

    Equality(CacheEntry, CacheEntry)

    Declaration
    public static bool operator ==(CacheEntry x, CacheEntry y)
    Parameters
    Type Name Description
    CacheEntry x
    CacheEntry y
    Returns
    Type Description
    Boolean

    Inequality(CacheEntry, CacheEntry)

    Declaration
    public static bool operator !=(CacheEntry x, CacheEntry y)
    Parameters
    Type Name Description
    CacheEntry x
    CacheEntry y
    Returns
    Type Description
    Boolean
    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