We’ve been running into an issue where we’re using the DisplayName of our enumerated types – i.e.
etc., in various parts of the game for different purposes. However, there’s a big “#if WITH_EDITOR” block around UField::GetDisplayNameText(), which means that it’s not available in non-editor builds … and GetEnumText() returns a different value in this case.
What is the reason for this? Is there any reason why we shouldn’t be accessing these DisplayName fields directly from non-Editor builds, such that they are #ifdef’d out?