Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSettingsInterface
- UPCGSettings
- UPCGRandomChoiceSettings
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGRandomChoice.h |
| Include | #include "Elements/PCGRandomChoice.h" |
Syntax
UCLASS (BlueprintType)
class UPCGRandomChoiceSettings : public UPCGSettings
Remarks
Chooses entries randomly through ratio or a fixed number of entries. Chosen/Discarded entries will be in the same order than they appear in the input data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFixedMode | Either choose a fixed number of entries, or a ratio of entries. | |
| bool | bOutputDiscardedEntries | By default, we output discarded entries. If you don't need them, disable this option. | |
| int | FixedNumber | Defines the number of entries to keep. | |
| float | Ratio | Defines the ratio of entries to keep. |
Overridden from UPCGSettings
| Type | Name | Description | |
|---|---|---|---|
| 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 > | |||
| bool | UseSeed () |
By default, settings do not use a seed. |