Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- FWeightedRandomSampler
- FSkeletalMeshAreaWeightedTriangleSampler
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/SkeletalMeshSampling.h |
Include | #include "Engine/SkeletalMeshSampling.h" |
Syntax
struct FSkeletalMeshAreaWeightedTriangleSampler : public FWeightedRandomSampler
Remarks
Allows area weighted sampling of triangles on a skeletal mesh.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | LODIndex | |
![]() |
USkeletalMesh * | Owner | Data used in initialization of the sampler. Not serialized. |
![]() |
TArray< int32 > * | TriangleIndices |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Init
(
USkeletalMesh* InOwner, |
Overridden from FWeightedRandomSampler
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | GetWeights
(
TArray< float >& OutWeights |
Gets the weight of all elements and returns their sum. |