docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CacheEntry

    Creates a container to store data in build cache.

    Implements
    IEquatable<CacheEntry>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Build.Pipeline.Utilities
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    [Serializable]
    public struct CacheEntry : IEquatable<CacheEntry>

    Properties

    File

    Stores the entry file name.

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

    Guid

    Stores the entry guid.

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

    Hash

    Stores the entry hash.

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

    ScriptType

    Stores the entry scripting type.

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

    Type

    Stores the entry type.

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

    Version

    Stores the entry version.

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

    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
    bool

    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
    bool

    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
    int

    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
    bool

    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

    operator ==(CacheEntry, CacheEntry)

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

    operator !=(CacheEntry, CacheEntry)

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

    Implements

    IEquatable<T>
    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)