0 votes

I am using option buttons to gather some information from the user. If they fail to fill in one of the options i add a texture frame containing a translucent red texture to indicate that they must select an option for that option button. When the scene loads I connect the option buttons to a function with their item_selected signal. This works fine on initial selection. However, if they fail to fill in a field and a texture frame is added as a child of the option button. If they click on the button i get the following error:

Index p_idx out of size (Items.size)

I tried changing the signal to the "pressed" signal and the same thing happens. Anybody know what is going on?


in Engine by (290 points)

You should probably share your code. Otherwise it's impossible to guess what's going on.

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 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 webmaster@godotengine.org with your username.