Struct CacheEntry
Creates a container to store data in build cache.
Implements
Inherited Members
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
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
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
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 |