Footstep sounds don't change on carpet

Hello. I made a change of footstep sounds on different surfaces. It works. But the sound of footsteps does not change if there is an object with a different physical material on the surface, such as a carpet. What am I doing wrong? Is the carpet too thin? Surface overlay not working as expected?

Check if the line tracing is working properly, detecting the surface type the character lands on. You can use function GetSurfaceType and PrintLog to see the if it works. Then check whether switches are working properly or not, that changes the footstep sound containers according to respective surface type.

Thanks for your reply! It seems that Unreal takes into account the physical material that is assigned in the mesh settings, but does not take into account the material that is assigned to the mesh in the settings.