Navigation
API > API/Plugins > API/Plugins/PCG
This wrapper class maintains a reference to unowned "viewed" data and also contains a "selection" of metadata. This can be used with a variety of operationsusually exporting datawhere a PCG Data type needs to be abstracted and/or serialized into a more generic type or refined to an explicit selection of properties or attributes on the data, to make it more accessible for processing.
Ex. Convert the $Position property of each point in a PCG Point data into Json key:value objects.
| Name | FPCGDataView |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/DataView/PCGDataView.h |
| Include Path | #include "Data/DataView/PCGDataView.h" |
Syntax
USTRUCT (MinimalAPI, BlueprintType , Blueprintable)
struct FPCGDataView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGDataView() |
Data/DataView/PCGDataView.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FPCGDataView() |
Data/DataView/PCGDataView.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Selection | FPCGDataViewSelection | An optionally filtered collection of attributes and properties to perform an operation on, such as data export. | Data/DataView/PCGDataView.h |
|
| ViewedData | TObjectPtr< const UPCGData > | The PCG Data this will provide a 'view' onto. | Data/DataView/PCGDataView.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< FPCGMetadataDomainID > GetAllMetadataDomainIDs() |
Aggregate all domain IDs from the current selection. | Data/DataView/PCGDataView.h | |
TArray< FPCGAttributePropertySelector > GetResolvedSelection() |
Get the final selection. @todo_pcg: Could be cached. | Data/DataView/PCGDataView.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsValid() |
The data exists and the selection is not empty. | Data/DataView/PCGDataView.h |