Interface IBuildCache
Base interface for the Build Caching
Namespace: UnityEditor.Build.Pipeline.Interfaces
Syntax
public interface IBuildCache : IContextObject
Methods
GetCachedArtifactsDirectory(CacheEntry)
Returns the path where artifact data can be saved in the cache
Declaration
string GetCachedArtifactsDirectory(CacheEntry entry)
Parameters
Type | Name | Description |
---|---|---|
CacheEntry | entry | Cache entry to get the path |
Returns
Type | Description |
---|---|
System.String | Path on disk where to save cached artifacts |
GetCachedInfoFile(CacheEntry)
Returns the path where info data can be saved in the cache
Declaration
string GetCachedInfoFile(CacheEntry entry)
Parameters
Type | Name | Description |
---|---|---|
CacheEntry | entry | Cache entry to get the path |
Returns
Type | Description |
---|---|
System.String | Path on disk where to save cached info |
GetCacheEntry(GUID)
Gets a CacheEntry for an asset identified by its GUID.
Declaration
CacheEntry GetCacheEntry(GUID asset)
Parameters
Type | Name | Description |
---|---|---|
GUID | asset | GUID identifier for an asset from the Asset Database |
Returns
Type | Description |
---|---|
CacheEntry | CacheEntry representing current asset. |
GetCacheEntry(ObjectIdentifier)
Gets a CacheEntry for an object identified by an Object Identifier.
Declaration
CacheEntry GetCacheEntry(ObjectIdentifier objectID)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier | objectID | Object identifier for an object |
Returns
Type | Description |
---|---|
CacheEntry | CacheEntry representing an object identifier. |
GetCacheEntry(String)
Gets a CacheEntry for a file identified by its relative path.
Declaration
CacheEntry GetCacheEntry(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Relative path of a file on disk |
Returns
Type | Description |
---|---|
CacheEntry | CacheEntry representing a file on disk. |
LoadCachedData(IList<CacheEntry>, out IList<CachedInfo>)
Loads a set of CachedInfos from the cache
Declaration
void LoadCachedData(IList<CacheEntry> entries, out IList<CachedInfo> cachedInfos)
Parameters
Type | Name | Description |
---|---|---|
IList<CacheEntry> | entries | List of cache entries to load |
IList<CachedInfo> | cachedInfos | Out list of cached infos loaded |
NeedsRebuild(CachedInfo)
Checks if the CachedInfo passed in needs to be rebuilt
Declaration
bool NeedsRebuild(CachedInfo info)
Parameters
Type | Name | Description |
---|---|---|
CachedInfo | info | Cached Info to check |
Returns
Type | Description |
---|---|
System.Boolean |
|
SaveCachedData(IList<CachedInfo>)
Saves a set of CachedInfos to the cache
Declaration
void SaveCachedData(IList<CachedInfo> infos)
Parameters
Type | Name | Description |
---|---|---|
IList<CachedInfo> | infos | List of cached infos to save |