Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Grid
Inheritance Hierarchy
- UObject
- UPCGLandscapeCache
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Grid/PCGLandscapeCache.h |
| Include | #include "Grid/PCGLandscapeCache.h" |
Syntax
UCLASS ()
class UPCGLandscapeCache : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | CacheEntryCount | ||
| EPCGLandscapeCacheSerializationContents | CookedSerializedContents | ||
| EPCGLandscapeCacheSerializationMode | SerializationMode |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
||
| void | ClearCache () |
||
| const FPCGLandscapeCacheEntry * | GetCacheEntry
(
ULandscapeComponent* LandscapeComponent, |
Gets (and creates if needed) the cache entry - available only in Editor | |
| const FPCGLandscapeCacheEntry * | GetCacheEntry
(
AActor* HintActor, |
Gets landscape cache entry, works both in editor (but does not create) but works in game mode too. | |
| TArray< FName > | GetLayerNames
(
ALandscapeProxy* Landscape |
||
| void | Initialize () |
Initialize cache. Can be safely called multiple times. | |
| void | PrimeCache () |
||
| void | SampleMetadataOnPoint
(
ALandscapeProxy* Landscape, |
Convenience method to get metadata from the landscape for a given pair of landscape and position | |
| void | Serialize
(
FArchive& Archive |
||
| void | TakeOwnership
(
UPCGLandscapeCache* InLandscapeCache |
||
| void | Tick
(
float DeltaSeconds |