HI,
I need to connect my OptinoButton nodes to item_select signal, by GDScrip 4.
For Button is present the example code on official documentation:

button.pressed.connect(self._button_pressed)

In my case I neeed something like:

myoptionbuttn.??????.connect(self._on_option_button_item_selected)
func _on_option_button_item_selected(index):
	print(index)

I also need to pass a custom param to my _on_option_button_item_selected
thanks for the replies.

What issue do you have, exactly? Do you get an error? But going by the naming scheme I'd guess the signal is called "item_selected".

BTW, there's a typo in myoptionbuttn.

    Toxe No errors, I need to know the correct connection instrunction syntax to connect OptionButton to the signal.

      lucac That would be almost as you already wrote:

      myoptionbuttn.item_selected.connect(self._on_option_button_item_selected)

        GlyphTheWolf thank you GlyphTheWolf, can I pass a custom parameter in addition to predefinite index ?

        optio.item_selected.connect(_on_option_button_item_selected.bind("foo"))
        ....
        func _on_option_button_item_selected(index,myvar):
        	print(index," ",myvar) 
        print result:
        1 foo

        it works thank you