I am going to try my best to describe my situation.
I created a Widget that has a Vertical Box inside of it (as a variable). What I am trying to accomplish is for the widget to keep track of a list inside that Vertical Box. I am able to add items to it (See Line1, Line2)
I want to be able to access that Vertical Box (child data). For example, Let’s say Line1 is a Button. When I click the button, data will appear on the right side (image and text)
My question is how do I access the child data from that Vertical box. There are a few nodes in there that I thought would help. Get Child Index and Get Child At
GetChildAt is what I use to get child widgets from a vertical box. What’s the issue exactly?
Also, I’m not following your example. You have a button in your vertical box that when clicked displays an image and text on the right… but you need to go back to the vertical box to get information from it? Why? What information are you grabbing? Are you storing the image and text in a custom button widget? If so, a custom dispatcher that sends the image and text would be better.
How many buttons do you have? If it’s only a few, then just have an OnClick event for each one. No need to go back to the vertical box.
If the buttons are dynamic, but there’s again only a few in use at a time, then again, you can have an OnClick for buttons 1 through N. As you add the buttons, you can bind the appropriate OnClick event. Each event is for a different index.
If you have lots of different buttons that are dynamic in the vertical box, then it’s usually easier to create a custom widget with button and info like I mentioned in my preview post. Again, you still don’t need to go back to the vertical box.
We just need to know the use case before going into more complicated stuff. And still not sure why you want to go back to the vertical box.