Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGMatchAndSetAttributesSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGMatchAndSetAttributes.h |
| Include | #include "Elements/PCGMatchAndSetAttributes.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGMatchAndSetAttributesSettings : public UPCGSettings
Remarks
This class creates a PCG node that can match, select by weight or match & select by weight a 'matching' entry in a provided Attribute Set with multiple entries. E.g. for a given point, if the point has the same specified attribute as the matching attribute in the attribute set, then we will copy all the other non-selection attributes to the point.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFindNearest | Controls whether the match operation will return the nearest match and not only match on equality. | |
| bool | bKeepUnmatched | Controls whether points that have no valid match in the attribute set are kept as is (default values) or removed from the output. | |
| bool | bMatchAttributes | Controls whether selection of the attribute set values to copy will be done by matching point-to-attribute set (true) or done randomly (false). | |
| bool | bUseInputWeightAttribute | Controls whether we will use the attribute provided in the Input Weight Attribute to perform entry selection. | |
| bool | bUseWeightAttribute | Controls whether we will consider the weights, as determined by the Weight Attribute values on the attribute set. | |
| bool | bWarnIfNoMatchData | Controls whether we will emit a warning and return nothing if there is no provided attribute set. | |
| FPCGAttributePropertyInputSelector | InputAttribute | Attribute from the point data to select & match. | |
| FPCGAttributePropertyInputSelector | InputWeightAttribute | Input weight from the points, assumed to be in the [0, 1] range. | |
| FName | MatchAttribute | Attribute from the attribute set to match against. | |
| FPCGMetadataTypesConstantStruct | MaxDistanceForNearestMatch | Constant value that establishes the maximum distance an entry can be from its nearest match to be selected | |
| FPCGAttributePropertyInputSelector | MaxDistanceInputAttribute | ||
| EPCGMatchMaxDistanceMode | MaxDistanceMode | Controls whether the match operation has a maximum distance on which to reject points that would be too far from the nearest value. | |
| FName | WeightAttribute | Attribute to weight more or less some entries from the attribute set. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyDeprecationBeforeUpdatePins
(
UPCGNode* InOutNode, |
UpdatePins will kick off invalid edges, so this is useful for moving edges around in case of pin changes. | |
| FPCGElementPtr | |||
| FName | |||
| FText | |||
| FText | |||
| EPCGSettingsType | GetType () |
||
| bool | If the node has any dynamic pins that can change based on input or settings | ||
| 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 > |