blob: ec8922632832f341995e8bd66f74a31941f0c720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class_name TestExportEnumAsDictionary
enum MyEnum {A, B, C}
@export var test_1 = MyEnum
@export var test_2 = MyEnum.A
@export var test_3 := MyEnum
@export var test_4 := MyEnum.A
@export var test_5: MyEnum
func test():
for property in get_property_list():
if str(property.name).begins_with("test_"):
Utils.print_property_extended_info(property)
|