unreal.PCGSelectGrammarCriterion¶
- class unreal.PCGSelectGrammarCriterion(key: Name = 'None', comparator: PCGSelectGrammarComparator = 0, first_value: float = 0.0, second_value: float = 0.0, grammar: str = '')¶
Bases:
StructBaseCriteria to compare against an input value for conditionally selecting a grammar.
C++ Source:
Plugin: PCG
Module: PCG
File: PCGSelectGrammar.h
Editor Properties: (see get_editor_property/set_editor_property)
comparator(PCGSelectGrammarComparator): [Read-Write] Comparison operator of a selected input value against a criterion’s value.first_value(double): [Read-Write] Compared against the input value.grammar(str): [Read-Write] The selected grammar result if the condition evaluates to true.key(Name): [Read-Write] Key representation of a potential grammar selection.second_value(double): [Read-Write] Used for comparison in range-based or ternary conditions.
- property comparator: PCGSelectGrammarComparator¶
[Read-Write] Comparison operator of a selected input value against a criterion’s value.
- Type: