Shooter Game 4.26 Linker Error

Hi all,

Since I switched the Shooter Game engine version to 4.26, I’ve been getting a strange linker error. The following lines are giving me a Linker Error, and I can’t seem to make heads or tails out of it.

In ShooterImpactEffect.cpp, class AShooterImpactEffect, Lines 15 and 16

UPhysicalMaterial* HitPhysMat = SurfaceHit.PhysMaterial.Get();
EPhysicalSurface HitSurfaceType = UPhysicalMaterial::DetermineSurfaceType(HitPhysMat);

Are giving me the following error:

error LNK2019: unresolved external symbol “__declspec(dllimport) public: static enum EPhysicalSurface __cdecl UPhysicalMaterial::DetermineSurfaceType(class UPhysicalMaterial const *)” (_imp?DetermineSurfaceType@UPhysicalMaterial@@SA?AW4EPhysicalSurface@@PEBV1@@Z) referenced in function “public: virtual void __cdecl AShooterImpactEffect::PostInitializeComponents(void)” (?PostInitializeComponents@AShooterImpactEffect@@UEAAXXZ)

I’m semi new to C++, but this code was working fine before I updated the project to 4.26.
Any help or idea’s why its doing this would be greatly appreciated!

Using physical materials now requires Physics Core as a module dependency.

PublicDependencyModuleNames.AddRange(new string[] {
“Core”,
“CoreUObject”,
“Engine”,
“InputCore”,
“PhysicsCore” });

1 Like

Wow, I knew it had to be something else. I would have never guessed a module though.

Thanks a ton!

Thanks !!!

Thanks!
How can you know which module is missing when an error like this happens ?
Because if you check the doc the UPhysicsMaterial class is marked under the Engine module…