Skip to content

Unreal enum in Python

Enumeration value names are automatically exposed as upper-case SNAKE_CASE

C++ to Python

if CurveLinearColor.h contains an enum, e.g.
EColourChannel uint8 { Red, Green, Blue, Alpha };

then it can be accessed in Python with
unreal.CurveLinearColor.ColourChannel.RED

Unreal Python