Announcement

Collapse
No announcement yet.

Link error GetPhysMaterial

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Link error GetPhysMaterial

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

    Code:
    MeshComponent->GetBodySetup()->GetPhysMaterial();
    but this results in a link error:

    Code:
    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?

    #2
    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.
    Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
    Twitter: @EpicJamesG

    Comment


      #3
      Thanks for the help

      Comment

      Working...
      X