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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback