Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGDistanceSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGDistance.h |
| Include | #include "Elements/PCGDistance.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGDistanceSettings : public UPCGSettings
Remarks
Calculates the distance between two points (inherently a n*n operation)
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOutputDistanceVector | Controls whether the attribute will be a scalar or a vector | |
| bool | bOutputToAttribute | Output the distance or distance vector to an attribute. | |
| bool | bSetDensity | If true, will also set the density to be 0 - 1 based on MaximumDistance | |
| double | MaximumDistance | A maximum distance to search, which is used as an optimization | |
| FPCGAttributePropertySelector | OutputAttribute | The attribute output for the resulting distance value. | |
| PCGDistanceShape | SourceShape | What shape is used on the 'source' points | |
| PCGDistanceShape | TargetShape | What shape is used on the 'target' points |
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 () |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | AttributeName_DEPRECATED |