Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGSurfaceData
- UPCGLandscapeData
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Data/PCGLandscapeData.h |
| Include | #include "Data/PCGLandscapeData.h" |
Syntax
UCLASS&40;BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
class UPCGLandscapeData : public UPCGSurfaceData
Remarks
Landscape data access abstraction for PCG. Supports multi-landscape access, but it assumes that they are not overlapping.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHeightOnly | ||
| FBox | Bounds | ||
| bool | bUseMetadata | ||
| TArray< TSoftObjectPtr< ALandscapeProxy > > | Landscapes | TODO: add on property changed to clear cached data. This is used to populate the LandscapeInfos array. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const ULandscapeInfo * | GetLandscapeInfo
(
const FVector& InPosition |
Returns the landscape info associated to the first landscape that contains the given position Note that this implicitly removes support for overlapping landscapes, which might be a future TODO | |
| void | Initialize
(
const TArray< TWeakObjectPtr< ALandscapeProxy >>& InLandscapes, |
||
| bool |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
||
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context, |
||
| bool |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal () |
||
| FBox | GetBounds () |
Returns the full bounds (including density fall-off) of the data | |
| FBox | Returns the bounds in which the density is always 1 | ||
| bool | Returns true if the data has a non-trivial transform | ||
| bool | ProjectPoint
(
const FTransform& InTransform, |
Project the query point onto this data, and sample point and metadata information at the projected position. | |
| bool | SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. |
Overridden from UPCGData
| Type | Name | Description | |
|---|---|---|---|
| EPCGDataType | GetDataType () |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |