Due to the existance of UEnum::GetDisplayNameText(int32 NameIndex)
(which is coincidentally deprecated in 4.16), the base class function UField::GetDisplayNameText()
is hidden. Is this intentional? I would expect that I could use GetDisplayNameText()
on a pointer to UEnum
to get the display name of the enum type itself, but in order to do so I have to upcast it to a UField
.
I would imagine that this is just a mistake, and there isn’t any valid reason to forbid one from attempting to get the display name of the enum type, and once the deprecated version of UEnum::GetDisplayNameText(int32 NameIndex)
is finally removed everything will be as it should be.