Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGDistanceSettings
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Elements/PCGDistance.h |
| Include | #include "Elements/PCGDistance.h" |
Syntax
UCLASS&40;BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
class UPCGDistanceSettings : public UPCGSettings
Remarks
Calculates the distance between two points (inherently a n*n operation)
Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | AttributeName | The name of the attribute to store on the point.Use 'None' to disable | |
| bool | bOutputDistanceVector | Controls whether the attribute will be a scalar or a vector | |
| 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 | |
| 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 > |