Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Grid
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGLandscapeCache
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Grid/PCGLandscapeCache.h |
| Include | #include "Grid/PCGLandscapeCache.h" |
Syntax
UCLASS&40;&41;
class UPCGLandscapeCache : public UObject
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearCache () |
||
| const FPCGLandscapeCacheEntry * | GetCacheEntry
(
ULandscapeComponent* LandscapeComponent, |
Gets (and creates if needed) the cache entry - available only in Editor | |
| const FPCGLandscapeCacheEntry * | GetCacheEntry
(
const FGuid& LandscapeGuid, |
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 | Tick
(
float DeltaSeconds |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |