I am trying to play sounds for every footstep but when line tracing my landscape, the surface type will always return Default. The issue only happens on landscapes. Static meshes with the Grass PhysMat work fine. Trying to print the value of the surface type gives me the following compiler error:
Enum to String has invalid enum value
‘0’
Things I’ve done:
- Created a new Surface Type called Grass
- Made a PhysMat with the Grass type assigned to it
- Assigned the PhysMat to the landscape and the landscape material
- Restarted the editor
I have another project I converted to 4.12 that also has the same functions but it works for that project. Maybe something is wrong with my current project? I’ve tried to replicate the same settings from the old one but to no avail.
Any ideas on what is causing this?