![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NumericTypeInterface.h>
Inheritance diagram for TNumericUnitTypeInterface< NumericType >:Public Attributes | |
| const EUnit | UnderlyingUnits |
| TOptional< EUnit > | FixedDisplayUnits |
| TOptional< EUnit > | UserDisplayUnits |
Public Attributes inherited from TDefaultNumericTypeInterface< NumericType > | |
| int16 | MinFractionalDigits = DefaultMinFractionalDigits |
| int16 | MaxFractionalDigits = DefaultMaxFractionalDigits |
| bool | bIndicateNearlyInteger = false |
Additional Inherited Members | |
Static Public Attributes inherited from TDefaultNumericTypeInterface< NumericType > | |
| static const int16 | DefaultMinFractionalDigits = 1 |
| static const int16 | DefaultMaxFractionalDigits = 6 |
| static const bool | DefaultIndicateNearlyInteger = false |
Numeric interface that specifies how to interact with a number in a specific unit. Include NumericUnitTypeInterface.inl for symbol definitions.
| TNumericUnitTypeInterface< NumericType >::TNumericUnitTypeInterface | ( | EUnit | InUnits | ) |
Constructor
|
overridevirtual |
Attempt to parse a numeral with our units from the specified string.
Reimplemented from TDefaultNumericTypeInterface< NumericType >.
|
overridevirtual |
Check whether the specified typed character is valid
Reimplemented from TDefaultNumericTypeInterface< NumericType >.
| void TNumericUnitTypeInterface< NumericType >::SetupFixedDisplay | ( | const NumericType & | InValue | ) |
Set up this interface to use a fixed display unit, calculated based on the specified value. For example, if underlying units are cm/s, but the provided value is over 100, it will use m/s instead.
|
overridevirtual |
Convert this type to a string
Reimplemented from TDefaultNumericTypeInterface< NumericType >.
| TOptional<EUnit> TNumericUnitTypeInterface< NumericType >::FixedDisplayUnits |
Optional units that this type interface will be fixed on. These are usually auto-calculated by SetupFixedDisplay.
| const EUnit TNumericUnitTypeInterface< NumericType >::UnderlyingUnits |
The underlying units which the numeric type are specified in.
| TOptional<EUnit> TNumericUnitTypeInterface< NumericType >::UserDisplayUnits |
Optional user-specified units that this type interface will be displayed in. If set, FixedDisplayUnits will be ignored.