Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements > API/Plugins/PCG/Elements/Grammar
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/Grammar/PCGSelectGrammar.h |
| Include | #include "Elements/Grammar/PCGSelectGrammar.h" |
Syntax
USTRUCT (BlueprintType )
struct FPCGSelectGrammarCriterion
Remarks
Criteria to compare against an input value for conditionally selecting a grammar.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EPCGSelectGrammarComparator | Comparator | Comparison operator of a selected input value against a criterion's value. | |
| double | FirstValue | Compared against the input value. | |
| FString | Grammar | The selected grammar result if the condition evaluates to true. | |
| FName | Key | Key representation of a potential grammar selection. | |
| double | SecondValue | Used for comparison in range-based or ternary conditions. |