Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FWeightedRandomSampler |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/WeightedRandomSampler.h |
| Include Path | #include "WeightedRandomSampler.h" |
Syntax
struct FWeightedRandomSampler
Derived Classes
- FSkeletalMeshAreaWeightedTriangleSampler
- FSkeletalMeshSamplingRegionAreaWeightedSampler
- FStaticMeshAreaWeightedSectionSampler
- FStaticMeshSectionAreaWeightedTriangleSampler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWeightedRandomSampler() |
WeightedRandomSampler.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FWeightedRandomSampler() |
WeightedRandomSampler.h |
Structs
| Name | Remarks |
|---|---|
| InternalLinkType |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | FWeightedRandomSampler | WeightedRandomSampler.h | |
| InternalBaseType | typename TGetBaseTypeHelper< FWeightedRandomSampler >::Type | WeightedRandomSampler.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CounterBase | int | WeightedRandomSampler.h | |
| InterfaceType | ETypeLayoutInterface::Type | WeightedRandomSampler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayView< const int32 > GetAlias() |
WeightedRandomSampler.h | ||
int32 GetEntryIndex
(
float R0, |
Takes two random values (0...1) and returns the corresponding element index. | WeightedRandomSampler.h | |
int32 GetNumEntries() |
WeightedRandomSampler.h | ||
TArrayView< const float > GetProb() |
WeightedRandomSampler.h | ||
float GetTotalWeight() |
WeightedRandomSampler.h | ||
virtual const FTypeLayoutDesc & GetTypeLayout() |
WeightedRandomSampler.h | ||
virtual void Initialize() |
WeightedRandomSampler.h | ||
virtual void Serialize
(
FArchive& Ar |
WeightedRandomSampler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetWeights
(
TArray< float >& OutWeights |
Gets the weight of all elements and returns their sum. | WeightedRandomSampler.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InternalDestroy
(
void* Object, |
WeightedRandomSampler.h | ||
static void InternalInitializeBases
(
FTypeLayoutDesc& TypeDesc |
WeightedRandomSampler.h | ||
static FTypeLayoutDesc & StaticGetTypeLayout() |
WeightedRandomSampler.h |