Skip to content

Commit 5a744e7

Browse files
Clarify, that only GDScript enums are dictionaries
1 parent 5767932 commit 5a744e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tutorials/scripting/gdscript/gdscript_basics.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,8 @@ want to assign consecutive integers to some constant.
13641364

13651365
If you pass a name to the enum, it will put all the keys inside a constant
13661366
:ref:`Dictionary <class_Dictionary>` of that name. This means all constant methods of
1367-
a dictionary can also be used with a named enum.
1367+
a dictionary can also be used with a named enum. This does only work for
1368+
GDScript enums, not for enums from builtin classes.
13681369

13691370
.. important:: Keys in a named enum are not registered
13701371
as global constants. They should be accessed prefixed

0 commit comments

Comments
 (0)