Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements > API/Plugins/PCG/Elements/Grammar
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGSelectGrammarSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/Grammar/PCGSelectGrammar.h |
| Include | #include "Elements/Grammar/PCGSelectGrammar.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGSelectGrammarSettings : public UPCGSettings
Remarks
Select a grammar by comparing an input attribute against a provided set criteria one-by-one in a sequential order.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCopyKeyForUnselectedGrammar | If no grammar is selected for a given point, pass through the key value. | |
| bool | bCriteriaAsInput | Pass criteria info as an attribute set matching the structure type 'FPCGSelectGrammarCriteria'. | |
| bool | bKeyAsAttribute | Select the key with an attribute. | |
| bool | bRemapCriteriaAttributeNames | Remap expected attribute names for the comparison criteria. | |
| FPCGAttributePropertyInputSelector | ComparedValueAttribute | The attribute on the input data to be compared against. Will be numerically evaluated. | |
| TArray< FPCGSelectGrammarCriterion > | Criteria | Selection criteria that will be evaluated in order. | |
| FPCGSelectGrammarCriteriaAttributeNames | CriteriaAttributeNames | The attribute names expected for the comparison criteria. | |
| FName | Key | An attribute key that represents the desired set of grammars. | |
| FPCGAttributePropertyInputSelector | KeyAttribute | An attribute selector for a key that represents the desired set of grammars. | |
| FPCGAttributePropertyOutputSelector | OutputGrammarAttribute | The attribute to output the selected grammar. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| FPCGElementPtr | |||
| FName | |||
| FText | |||
| FText | |||
| EPCGSettingsType | GetType () |
||
| TArray< FPCGPinProperties > | Returns an array of all the input pin properties. You should not add manually a "params" pin, it is handled automatically by FillOverridableParamsPins. | ||
| TArray< FPCGPinProperties > | |||
| void | PostLoad () |