I have an inventory made up of a scroll box and inventory slot widgets inside of it showing the item and quantity. What I want is to click on an item and the text color change then when I click on another item the text go back to normal on the previous item and change color on the new item I clicked.
In the past if I had buttons that were not part of a scroll box and I wanted to do this, I would select all the buttons and reset to default color and then change it on that one button to a brighter color. Each time you selected another button the color would go back to normal and that button would change to brighter. I am having issues selecting all of the buttons in the array to do this.
Here is what I have, most likely I messed it up. I even with a few items in my inventory I just get a “Loop Completed” string and never get a “Looping” string. My Inventory widget it “InventoryMenu” and it contains the scroll box “InventoryScrollBox”. The “Inventory Slot” widget is the button added to the scroll box containing the items.
If I add the widget (Children) to the scroll box as you did, in the editor it will come back with the number of children I added using that method. I am adding the widgets (Children) in game to the scroll box at pickup using an array. It is not recognizing them as children apparently.