Navigation
API > API/Plugins > API/Plugins/HairStrandsCore > API/Plugins/HairStrandsCore/FGroomRBFDeformer
Description
Return a new GroomAsset with the RBF deformation from the BindingAsset baked into it
If bShouldBuildStaticMeshes is true, this function will ensure the static meshes owned by the groom are built after being modified. In this case, GetRBFDeformedGroomAsset can only be called from the Game Thread.
If bShouldBuildStaticMeshes is false, GetRBFDeformedGroomAsset may be called from a background thread, but the caller must:
Call ConditionalPostLoad and PreEditChange on each ImportedMesh returned by both GetHairGroupsCards and GetHairGroupsMeshes before calling GetRBFDeformedGroomAsset.
Call UStaticMesh::BatchBuild and MarkPackageDirty on the same ImportedMeshes after calling GetRBFDeformedGroomAsset to begin async building of the meshes.
To block until the async build is finished (if necessary), call FStaticMeshCompilingManager::Get().FinishAllCompilation().
| Name | GetRBFDeformedGroomAsset |
| Type | function |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/GroomRBFDeformer.h |
| Include Path | #include "GroomRBFDeformer.h" |
| Source | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Private/GroomRBFDeformer.cpp |
void GetRBFDeformedGroomAsset
(
const UGroomAsset * InGroomAsset,
const UGroomBindingAsset * BindingAsset,
FTextureSource * MaskTextureSource,
const float MaskScale,
UGroomAsset * OutGroomAsset,
const ITargetPlatform * TargetPlatform,
bool bShouldBuildStaticMeshes
)