Hi, I am trying to change my tagged Phys Material override in runtime (example when I equip an armor)
like this
FBodyInstance* BodyInstance = SkeletalMesh->GetBodyInstance(SocketName);
if (BodyInstance)
{
BodyInstance->SetPhysMaterialOverride(PhysicalMaterial);
}
the problem is, it is changing not for selected skeletal mesh, but for all SKMs in game. When I open the Physics Asset in editor, I can see that for every bone is applied this material. I would like to change this only in game for one character, but not the defaults properties of this Physics Asset.
So I thought if I have body instance, I can change the phys mat for one character, but not the property in editor.