Download

Link error GetPhysMaterial

I’m trying to access the physics material from some static mesh component by calling:


MeshComponent->GetBodySetup()->GetPhysMaterial();

but this results in a link error:


error LNK2019: unresolved external symbol "public: class UPhysicalMaterial * __cdecl UBodySetup::GetPhysMaterial(void)const " (?GetPhysMaterial@UBodySetup@@QEBAPEAVUPhysicalMaterial@@XZ) 

Is there a work-around or fix for this?

If you have full source, I think you will need to add ENGINE_API to that function declaration. I will make that change here now, sorry for the trouble.

Thanks for the help :slight_smile: