Navigation
API > API/Plugins > API/Plugins/PCG
| Name | UPCGLandscapeCache |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Grid/PCGLandscapeCache.h |
| Include Path | #include "Grid/PCGLandscapeCache.h" |
Syntax
UCLASS ()
class UPCGLandscapeCache : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGLandscapeCache
Structs
| Name | Remarks |
|---|---|
| CacheMapKey |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CacheEntryCount | int32 | Grid/PCGLandscapeCache.h |
|
|
| CookedSerializedContents | EPCGLandscapeCacheSerializationContents | Grid/PCGLandscapeCache.h |
|
|
| SerializationMode | EPCGLandscapeCacheSerializationMode | Grid/PCGLandscapeCache.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | Grid/PCGLandscapeCache.h | ||
| bLoggedNoCacheError | bool | Grid/PCGLandscapeCache.h | ||
| CachedData | TMap< CacheMapKey, TSharedPtr< FPCGLandscapeCacheEntry > > | Mapping of landscape guid + coordinates to entries. This is manually serialized as needed (depends on the serialize options). | Grid/PCGLandscapeCache.h | |
| CachedLayerNames | TSet< FName > | TODO: separate by landscape. | Grid/PCGLandscapeCache.h |
|
| CacheLock | FRWLock | Grid/PCGLandscapeCache.h | ||
| CacheMemorySize | std::atomic< int32 > | Grid/PCGLandscapeCache.h | ||
| CacheTouch | std::atomic< int32 > | Grid/PCGLandscapeCache.h | ||
| Landscapes | TSet< TWeakObjectPtr< ALandscapeProxy > > | Grid/PCGLandscapeCache.h | ||
| TimeSinceLastCleanupInSeconds | float | Grid/PCGLandscapeCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AreCacheEntriesReady
(
const ULandscapeInfo* InLandscapeInfo, |
Grid/PCGLandscapeCache.h | ||
void ClearCache() |
Grid/PCGLandscapeCache.h |
|
|
TSharedPtr< const FPCGLandscapeCacheEntry > GetCacheEntry
(
const ULandscapeInfo* InLandscapeInfo, |
Gets landscape cache entry for specified component key | Grid/PCGLandscapeCache.h | |
TArray< FName > GetLayerNames
(
ALandscapeProxy* Landscape |
Grid/PCGLandscapeCache.h | ||
void Initialize() |
Initialize cache. Can be safely called multiple times. | Grid/PCGLandscapeCache.h | |
void PrimeCache
(
const ULandscapeInfo* InLandscapeInfo, |
Load/Create cache entries between Min/Max component key inclusively | Grid/PCGLandscapeCache.h | |
void PrimeCache () |
Grid/PCGLandscapeCache.h |
|
|
void SampleMetadataOnPoint
(
ALandscapeProxy* Landscape, |
Convenience method to get metadata from the landscape for a given pair of landscape and position | Grid/PCGLandscapeCache.h | |
void TakeOwnership
(
UPCGLandscapeCache* InLandscapeCache |
Grid/PCGLandscapeCache.h | ||
void Tick
(
float DeltaSeconds |
Grid/PCGLandscapeCache.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
Grid/PCGLandscapeCache.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Grid/PCGLandscapeCache.h | ||
virtual void Serialize
(
FArchive& Archive |
Grid/PCGLandscapeCache.h |