Hint int property is a Variant type enumeration #5857
Closed
timothyqiu
started this conversation in
Engine Core
Replies: 1 comment
-
In GDScript you can also use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently no way to specify a
int
export variable is any ofTYPE_INT
,TYPE_ARRAY
,TYPE_AABB
, etc.Editor code (e.g. AnimationTrackKeyEdit and TileSet) hints the variable is an enum, and populates the enum hint with the corresponding Variant type names. This tedious to do in GDScript as
Variant::get_type_name()
is not exposed.I think there're two ways to implement this:
Variant::get_type_name()
so the user can fill enum hint easily.PROPERTY_HINT_INT_IS_VARIANT_TYPE
hint.Beta Was this translation helpful? Give feedback.
All reactions