Navigation
API > API/Runtime > API/Runtime/Core
Unit settings accessed globally through FUnitConversion::Settings()
| Name | FUnitSettings |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnitConversion.h |
| Include Path | #include "Math/UnitConversion.h" |
Syntax
class FUnitSettings
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUnitSettings() |
Math/UnitConversion.h |
Classes
| Name | Remarks |
|---|---|
| FDisplaySettingChanged | Returns an event delegate that is executed when a display setting has changed. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bGlobalUnitDisplay | bool | Global toggle controlling whether we should display units or not | Math/UnitConversion.h | |
| DisplayUnits | TArray< EUnit > | Arrays of units that are valid to display on interfaces | Math/UnitConversion.h | |
| SettingChangedEvent | FDisplaySettingChanged | Holds an event delegate that is executed when a display setting has changed. | Math/UnitConversion.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Get/Set the specific valid units to display the specified type of unit in | Math/UnitConversion.h | ||
FDisplaySettingChanged & OnDisplaySettingsChanged() |
Math/UnitConversion.h | ||
void SetDisplayUnits
(
EUnitType InType, |
Math/UnitConversion.h | ||
void SetDisplayUnits
(
EUnitType InType, |
Math/UnitConversion.h | ||
void SetShouldDisplayUnits
(
bool bInGlobalUnitDisplay |
Math/UnitConversion.h | ||
bool ShouldDisplayUnits() |
Check whether unit display is globally enabled or disabled | Math/UnitConversion.h |