You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to Godot, I have been using it for a few weeks and really enjoying it. I want to discuss functionality of the enum. During my development process I am constantly adding to my enums, a side effect of adding not to the bottom of an enum but in the middle to keep some kind of order can break anywhere that I have that enum value chosen in nodes in the inspector.
I am using some automations to add to an enum when I import new items in the editor, to do this I am setting each value in the enum equal to a string.hash() of the enum key. I know this introduces the same issue when changing an enum key, but thought I would ask if others have ran into the issue I am facing. Maybe there is a cleaner way of solving my problem or maybe some kind of enum/hash can be a real thing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am new to Godot, I have been using it for a few weeks and really enjoying it. I want to discuss functionality of the enum. During my development process I am constantly adding to my enums, a side effect of adding not to the bottom of an enum but in the middle to keep some kind of order can break anywhere that I have that enum value chosen in nodes in the inspector.
I am using some automations to add to an enum when I import new items in the editor, to do this I am setting each value in the enum equal to a string.hash() of the enum key. I know this introduces the same issue when changing an enum key, but thought I would ask if others have ran into the issue I am facing. Maybe there is a cleaner way of solving my problem or maybe some kind of enum/hash can be a real thing?
Thanks for your time
Beta Was this translation helpful? Give feedback.
All reactions