Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshBoneW-
Description
Create a new BoneWeights attribute on the TargetMesh, if it does not already exist. If it does exist, and bReplaceExistingProfile is passed as true, the attribute will be removed and re-added, to reset it.
| Name | MeshCreateBoneWeights |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshBoneWeightFunctions.h |
| Include Path | #include "GeometryScript/MeshBoneWeightFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshBoneWeightFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshQueries|BoneWeights",
Meta=(ScriptMethod))
static UDynamicMesh * MeshCreateBoneWeights
(
UDynamicMesh * TargetMesh,
bool & bProfileExisted,
bool bReplaceExistingProfile,
FGeometryScriptBoneWeightProfile Profile
)
Parameters
| Name | Remarks |
|---|---|
| bProfileExisted | will be returned true if the requested bone weight profile already existed |
| bReplaceExistingProfile | if true, if the Profile already exists, it is reset |
| Profile | identifier for the bone/skin weight profile |