Godot 4.3
I am trying to spawn a series of OptionButtons in a vertical list sequentially after an item is selected. The first OptionButton is loaded immediately and part of the main scene, each subsequent OptionButton contains the same data so I built it as a separate scene containing just the OptionButton with its items populated. Once an item is selected from the first drop down the separate OptionButton scene is added to the scene tree and functions correctly. I cant figure out how to get the “item_selected” signal to talk to the main script to add additional OptionButtons to the scene tree.
VBoxContainer
|- FirstOptionButton
|- (separate scene OptionButton is added here with code)
|- (and here, etc)
I’ve found plenty of help of sending and receiving signals from nodes already within the same scene but can’t find anything about sending a signal from one scene and receiving the signal in another or how to receiving a signal in the main scene from a separate scene that has been instantiated in the main scene.
Hope I explained everything clearly enough.