FUnitConversion::Convert

Convert the specified number from one unit to another. Does nothing if the units are incompatible.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnitConversion.h

Include

#include "Math/UnitConversion.h"

Source

/Engine/Source/Runtime/Core/Public/Math/UnitConversion.inl

Syntax

template<typename T>
static T Convert
(
    T InValue,
    EUnit From,
    EUnit To
)

Remarks

Convert the specified number from one unit to another. Does nothing if the units are incompatible.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss