0 votes

Hi,

when I try to reference an exported enum of three strings, I get nothing - not even nil or Null, nor do i get a crash. Only the value does't register. I'm referencing it as usual with the name of the variable, "node.strings".

related to an answer for: Exporting to a drop down list
in Engine by (51 points)

Is 'node' or 'strings' the exported variable? An enum is exported though another variable name.

enum the_enum {...}
export (the_enum) var selected_value = the_enum...

selected_value should be the enum's selected index.

Thank you, it was this.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.