Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGAttributeReduceSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGAttributeReduceElement.h |
| Include | #include "Elements/PCGAttributeReduceElement.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGAttributeReduceSettings : public UPCGSettings
Remarks
Take all the entries/points from the input and perform a reduce operation on the given attribute/property and output the result into a ParamData. Note: Special case for average on Quaternion since they are not trivially averageable. We have a simplistic approximation that would be accurate only if the quaternions are close to each other. The accurate version of the average is using eigenvectors/eigenvalues which is way more complicated and computationally expensive. Quaternion will also be normatilzed at the end. Beware if you are using this average.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bMergeOutputAttributes | Option to merge all results into a single attribute set with multiple entries, instead of multiple attribute sets with a single value in them. | |
| FPCGAttributePropertyInputSelector | InputSource | ||
| EPCGAttributeReduceOperation | Operation | ||
| FName | OutputAttributeName |
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyDeprecation
(
UPCGNode* InOutNode |
Any final migration/recovery that can be done after pins are finalized. | |
| void | ApplyPreconfiguredSettings
(
const FPCGPreConfiguredSettingsInfo& PreconfiguredInfo |
||
| FPCGElementPtr | |||
| FString | Derived classes can implement this to expose additional information or context, such as an asset in use by the node. | ||
| EPCGChangeType | GetChangeTypeForProperty
(
const FName& InPropertyName |
Gets the change impact for a given property. | |
| FName | |||
| FText | |||
| TArray< FPCGPreConfiguredSettingsInfo > | Return preconfigured info that will be filled in the editor palette action, allowing to create pre-configured settings | ||
| 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. | ||
| bool | If there are preconfigured info, we can skip the default settings and only expose pre-configured actions in the editor palette | ||
| TArray< FPCGPinProperties > | |||
| void | PostLoad () |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | InputAttributeName_DEPRECATED |