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