Announcement

Collapse
No announcement yet.

Why are FText formatting structs & enums not UStructs/UEnums?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why are FText formatting structs & enums not UStructs/UEnums?

    Hey team,

    I noticed FNumberFormattingOptions & ERoundingMode in Text.h do not use Unreal's UStruct and UEnum declarations meaning they can't directly be used in blueprints.

    Is there any reason for this?

    I am asking as I wish to create a widget where the user can provide rounding data (DP, SF, Rounding mode) to format some FText values outputted in the widget. These structs and enums match what I require exactly, as I'm converting values using FText's AsNumber() functions which take FNumberFormattingOptions. Because I can't use them in BP I have to create my own adapters for the user to control in the widget, which seems unnecessary?

    Cheers,
    Mugen
Working...
X