EUnit

Enum _must_ be zero-indexed and sequential.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/UnitConversion.h"

Syntax

enum EUnit
{
    Micrometers,
    Millimeters,
    Centimeters,
    Meters,
    Kilometers,
    Inches,
    Feet,
    Yards,
    Miles,
    Lightyears,
    Degrees,
    Radians,
    MetersPerSecond,
    KilometersPerHour,
    MilesPerHour,
    Celsius,
    Farenheit,
    Kelvin,
    Micrograms,
    Milligrams,
    Grams,
    Kilograms,
    MetricTons,
    Ounces,
    Pounds,
    Stones,
    Newtons,
    PoundsForce,
    KilogramsForce,
    Hertz,
    Kilohertz,
    Megahertz,
    Gigahertz,
    RevolutionsPerMinute,
    Bytes,
    Kilobytes,
    Megabytes,
    Gigabytes,
    Terabytes,
    Lumens,
    Candela,
    Lux,
    CandelaPerMeter2,
    Milliseconds,
    Seconds,
    Minutes,
    Hours,
    Days,
    Months,
    Years,
    PixelsPerInch,
    Percentage,
    Multiplier,
    Unspecified,
}

Values

Name

Description

Micrometers

Scalar distance/length units

Millimeters

Centimeters

Meters

Kilometers

Inches

Feet

Yards

Miles

Lightyears

Degrees

Angular units

Radians

MetersPerSecond

Speed units

KilometersPerHour

MilesPerHour

Celsius

Temperature units

Farenheit

Kelvin

Micrograms

Mass units

Milligrams

Grams

Kilograms

MetricTons

Ounces

Pounds

Stones

Newtons

Force units

PoundsForce

KilogramsForce

Hertz

Frequency units

Kilohertz

Megahertz

Gigahertz

RevolutionsPerMinute

Bytes

Data Size units

Kilobytes

Megabytes

Gigabytes

Terabytes

Lumens

Luminous flux units, luminous intensity, illuminance, luminance

Candela

Lux

CandelaPerMeter2

Milliseconds

Time units

Seconds

Minutes

Hours

Days

Months

Years

PixelsPerInch

Pixel density units

Percentage

Arbitrary multipliers

Multiplier

Unspecified

Symbolic entry, not specifiable on meta data

Remarks

Enum must be zero-indexed and sequential. Must be grouped by relevance and ordered by magnitude. Enum must match the mirrored enum that exists in CoreUObject/Classes/Object.h for the purposes of UObject reflection

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