Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FWeightedRandomSampler
- FStaticMeshSectionAreaWeightedTriangleSampler
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/StaticMeshResources.h |
Include | #include "StaticMeshResources.h" |
Syntax
struct FStaticMeshSectionAreaWeightedTriangleSampler : public FWeightedRandomSampler
Remarks
Creates distribution for uniformly sampling a mesh section.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FStaticMeshLODResources * | Owner | |
![]() |
int32 | SectionIdx |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Init
(
FStaticMeshLODResources* InOwner, |
Overridden from FWeightedRandomSampler
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | GetWeights
(
TArray< float >& OutWeights |
Gets the weight of all elements and returns their sum. |