GODOT_ENUM

Usage

GODOT_ENUM();
enum ExampleEnum {
    ENUM_VALUE_A,
    ENUM_VALUE_B,
    ENUM_VALUE_C
};

Mark the following enum as an exposed enum, binding literals and enable variant casting.

Available Parameter Types

GOC_EnumGeneratorOptions

This parameter type is used to provide options to the enum generator in the GODOT_ENUM macro parameters.

The following values are available:

Value

Description

EnumDefault

Bind this enum as a regular enum. This is the default value.

EnumFlags

Bind this enum as a bitfield enum and display properties of this type as flags in the inspector.