Method GetCacheEntry
GetCacheEntry(GUID, int)
Gets a CacheEntry for an asset identified by its GUID.
Declaration
CacheEntry GetCacheEntry(GUID asset, int version = 1)
Parameters
Type | Name | Description |
---|---|---|
GUID | asset | GUID identifier for an asset from the Asset Database |
int | version | Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional) |
Returns
Type | Description |
---|---|
Cache |
CacheEntry representing current asset. |
GetCacheEntry(string, int)
Gets a CacheEntry for a file identified by its relative path.
Declaration
CacheEntry GetCacheEntry(string path, int version = 1)
Parameters
Type | Name | Description |
---|---|---|
string | path | Relative path of a file on disk |
int | version | Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional) |
Returns
Type | Description |
---|---|
Cache |
CacheEntry representing a file on disk. |
GetCacheEntry(ObjectIdentifier, int)
Gets a CacheEntry for an object identified by an Object Identifier.
Declaration
CacheEntry GetCacheEntry(ObjectIdentifier objectID, int version = 1)
Parameters
Type | Name | Description |
---|---|---|
Object |
objectID | Object identifier for an object |
int | version | Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional) |
Returns
Type | Description |
---|---|
Cache |
CacheEntry representing an object identifier. |
GetCacheEntry(Type, int)
Gets a CacheEntry for a scripting type by a System.Type.
Declaration
CacheEntry GetCacheEntry(Type type, int version = 1)
Parameters
Type | Name | Description |
---|---|---|
Type | type | System.Type for a scripting type |
int | version | Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional) |
Returns
Type | Description |
---|---|
Cache |
CacheEntry representing an object identifier. |