Interface for runtime asset cache cache builders.
更多...
#include <RuntimeAssetCachePluginInterface.h>
被 URuntimeAssetCacheBuilder_ObjectBase 继承.
Interface for runtime asset cache cache builders.
This API will be called concurrently.
◆ Build()
Does the work of creating serialized cache entry.
- 返回
- Pointer to contiguous memory block with serialized cache entry on success, nullptr otherwise.
◆ CachedAssetVersionIsUpToDate()
| virtual bool IRuntimeAssetCacheBuilder::CachedAssetVersionIsUpToDate |
( |
int32 |
CachedAssetVersion | ) |
|
|
inlinevirtual |
Check if the cached asset is up to date.
If the current AssetVersion is greater than the cached AssetVersion, the cached asset will be re-built.
- 返回
- Whether the cached asset is good (return true) or needs to be rebuilt (return false).
◆ GetAssetUniqueName()
| virtual FString IRuntimeAssetCacheBuilder::GetAssetUniqueName |
( |
| ) |
const |
|
pure virtual |
Returns the name uniquely describing the asset.
- 返回
- Asset unique name.
◆ GetAssetVersion()
| virtual int32 IRuntimeAssetCacheBuilder::GetAssetVersion |
( |
| ) |
|
|
pure virtual |
Gets asset version to rebuild cache if cached asset is too old.
- 返回
- Asset version.
◆ GetBucketConfigName()
| virtual const TCHAR * IRuntimeAssetCacheBuilder::GetBucketConfigName |
( |
| ) |
const |
|
pure virtual |
Get the builder type name.
This is used to categorize cached data to buckets.
- 返回
- Type name of builder.
◆ GetBuilderName()
| virtual const TCHAR * IRuntimeAssetCacheBuilder::GetBuilderName |
( |
| ) |
const |
|
pure virtual |
Get the name of cache builder, this is used as part of the cache key.
- 返回
- Name of cache builder
◆ IsBuildThreadSafe()
| virtual bool IRuntimeAssetCacheBuilder::IsBuildThreadSafe |
( |
| ) |
const |
|
pure virtual |
Gets whether Build function is threadsafe
- 返回
- true if Build is threadsafe, false otherwise.
◆ SerializeData()
Serializes data into archive
- 参数
-
| Ar | Archive to serialize to. |
| InData | Data to serialize. |
◆ ShouldBuildAsynchronously()
| virtual bool IRuntimeAssetCacheBuilder::ShouldBuildAsynchronously |
( |
| ) |
const |
|
inlinevirtual |
Gets whether Build function must be called asynchronously.
- 返回
- true if Build should be called asynchronously, false otherwise.
该类的文档由以下文件生成:
- RuntimeAssetCachePluginInterface.h