Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Basic Tool Property Set that allows for selecting from a list of FNames (that we assume are Weight Maps)
| Name | UWeightMapSetProperties |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/PropertySets/WeightMapSetProperties.h |
| Include Path | #include "PropertySets/WeightMapSetProperties.h" |
Syntax
UCLASS (MinimalAPI)
class UWeightMapSetProperties : public UInteractiveToolPropertySet
Inheritance Hierarchy
- FWatchablePropertySet → UInteractiveToolPropertySet → UWeightMapSetProperties
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveToolPropertySet → UWeightMapSetProperties
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInvertWeightMap | bool | PropertySets/WeightMapSetProperties.h |
|
|
| WeightMap | FName | Select vertex weight map. | PropertySets/WeightMapSetProperties.h |
|
| WeightMapsList | TArray< FString > | Internal list used to implement above | PropertySets/WeightMapSetProperties.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< FString > GetWeightMapsFunc() |
This function is called provide set of available weight maps | PropertySets/WeightMapSetProperties.h | |
bool HasSelectedWeightMap() |
Return true if any option other than "None" is selected | PropertySets/WeightMapSetProperties.h | |
void InitializeFromMesh
(
const FMeshDescription* Mesh |
Set list of weightmap FNames based on per-vertex float attributes in MeshDescription. Adds "None" as first option. | PropertySets/WeightMapSetProperties.h | |
| Set list of weightmap FNames explicitly. Adds "None" as first option. | PropertySets/WeightMapSetProperties.h | ||
void SetSelectedFromWeightMapIndex
(
int32 Index |
Set selected weightmap from its position in the WeightMapsList | PropertySets/WeightMapSetProperties.h |