Surface type is reporting as 'name' whilst playing in editor, but is returning different results when playing a launched/packaged project

I’m using the physics material list for a few different systems and I’ve discovered that the hit result/surface type node returns a physics materials name during play in the editor as intended, but this seems to be lost when playing the project via launch or playing a packaged project.

So for instance… a material I’ve named “Soil” in the projects physics settings will return ‘Soil’ in the editor play mode, but returns “Surfacetype_30” when playing via launch/packaged. This means I had to write a temporary hacky function to ‘translate’ surface types to the correct name/string in order to get a consistent surface result across both editor and launched.

I’m assuming this must be a bug, as consistent results from the same node must surely be the intended result?

Hi CubitStudios,

Looks like Ed reproduced and created a JIRA ticket for this issue here:

https://answers.unrealengine.com/questions/507392/launchingpackaging-project-loses-physics-material.html

Thanks,

TJ

Great stuff, thanks a lot :slight_smile: