Hello, my friends. Is there any way for me using C++ to get a FTransform from a staticmesh socket?
Thanks in advance.
Hello, my friends. Is there any way for me using C++ to get a FTransform from a staticmesh socket?
Thanks in advance.
Hmm, does this suffice?
#include "Components/StaticMeshComponent.h"
// Assuming you have a reference to the UStaticMeshComponent in your code called StaticMeshComponent
FTransform SocketTransform = StaticMeshComponent->GetSocketTransform("SocketName");
You can get the FTransform of a static mesh socket in C++ using the GetSocketTransform()
function from the UStaticMeshComponent
class.
THanks a lot, my friend! Cheers!
No worries!