Create physical materials and set up surface types
Create blend layer landscape material
Create landscape and use blend layer material at landscape
Create layers info and set up phys materials
In character BP create while to linetrace my below position and print surface type, when i going to landscape i see Default, but if i try going to static mesh (with simple mats with second paragraph) all good, print return me grass\rock\wood
and when i going to landscape i see errors spam:
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_BreakHitResult_PhysMat”. Blueprint: ThirdPersonCharacter Function: Execute Ubergraph Third Person Character Graph: EventGraph Node: Print String
There’s a bug on the UE issue tracker for this particular problem. I am currently going through the recent changes myself, to fix it temporarily. Have you guys had any luck with that already?
Took some digging, but here it goes: It seems the way the physical material is queried on landscapes has been changed between 4.23 (4.24?) and 4.24.1. The change is in Engine/Source/Runtime/Landscape/Private/LandscapeCollision.cpp in line 603.
No idea to be honest…
We were on a rather tight schedule so the only thing that mattered to us at that moment was the fact that it magically fixed our issue.