Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Metadata
Inheritance Hierarchy
- FPCGAttributePropertySelector
- FPCGAttributePropertyInputSelector
- FPCGAttributePropertyOutputNoSourceSelector
- FPCGAttributePropertyOutputSelector
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGAttributePropertySelector.h |
| Include | #include "Metadata/PCGAttributePropertySelector.h" |
Syntax
USTRUCT (BlueprintType , Meta=(Hidden))
struct FPCGAttributePropertySelector
Remarks
Blueprint class to allow to select an attribute or a property. It will handle the logic and can only be modified using the blueprint library defined below. Also has a custom detail view in the PCGEditor plugin.
Note: This class should not be used as is, but need to be referenced by either an "InputSelector" or an "OutputSelector" (defined below). The reason for that is to provide 2 different default values for input and output. Input will have the "@Last" default value (meaning last attribute written to) and the Output will have "@Source" default value (meaning, same thing as input).
Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | AttributeName | ||
| TArray< FString > | ExtraNames | ||
| EPCGExtraProperties | ExtraProperty | ||
| EPCGPointProperties | PointProperty | ||
| EPCGAttributePropertySelection | Selection |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddToCrc
(
FArchiveCrc32& Ar |
||
| T | CreateAttributeSelector
(
const FName AttributeName |
Convenience templated static constructors. | |
| T | CreateExtraPropertySelector
(
EPCGExtraProperties ExtraProperty |
||
| T | CreateFromOtherSelector
(
const FPCGAttributePropertySelector& InOther |
||
| T | CreatePointPropertySelector
(
EPCGPointProperties PointProperty |
||
| T | CreateSelectorFromString
(
const FString& String |
||
| bool | ExportTextItem
(
FString& ValueStr, |
||
| FName | |||
| FString | GetAttributePropertyAccessorsString
(
bool bAddLeadingSeparator |
Returns the accessor part of the selector, with optional leading '.' separator. | |
| FString | GetAttributePropertyString
(
bool bAddPropertyQualifier |
Returns attribute/property name only, with optional '$' qualifier for properties. | |
| FText | Returns the text to display in the widget. | ||
| const TArray< FString > & | |||
| TArray< FString > & | |||
| EPCGExtraProperties | |||
| FName | GetName () |
Return the name of the selector. | |
| EPCGPointProperties | |||
| EPCGAttributePropertySelection | GetSelection () |
Getters. | |
| void | ImportFromOtherSelector
(
const FPCGAttributePropertySelector& InOther |
||
| bool | ImportTextItem
(
const TCHAR*& Buffer, |
||
| bool | Convenient function to know if it is a basic attribute (attribute and no extra names) | ||
| bool | IsSame
(
const FPCGAttributePropertySelector& Other, |
||
| bool | IsValid () |
Return true if the underlying name is valid. | |
| bool | SetAttributeName
(
FName InAttributeName, |
||
| bool | SetExtraProperty
(
EPCGExtraProperties InExtraProperty, |
||
| bool | SetPointProperty
(
EPCGPointProperties InPointProperty, |
Setters, retrurn true if something changed. | |
| FString | ToString () |
Returns qualified attribute/property name with the accessors. | |
| bool | Update the selector with an incoming string. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FPCGAttributePropertySelector& Other |