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

CubitStudios
Mon, 17 Oct 2016 12:17:53 +0000
World Creation

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?

3 posts - 1 participant