yo,
i felt this should be easier, but i am struggling to achieve it.
I have a horizontal box that contains a bunch of border widgets. I am cycling through children of horizontal box and i want to find the screen space location for each widget.
I have a ref to the Border widget (that is being instanced multiple times). and i have the horizontal box ‘app box’ that is being cycled through.
I will first need to check if the array element is a ‘border’ widget and then somehow run a get screen position node.
any help would be appreciated, thanks!
thanks mate, this looks promising.
However i think because the border widget populating the box are instances of a border widget blueprint. i dont this the cast to border can identify the border objects.
Now i am cycling through those references to the blueprints maybe?
Sorry, i am getting confused ha.
Sam
i believe you. but i think im missing something or havent explained something. Because nothing is being printed to screen.
this is the horizontal box before program is run:
the first part of program populates that box with these border instances:
the border screen location checker happens right after. But there seems to be no output coming out of cast to border…
Sam
You don’t have any borders here:

It will help if you cast to ScaleBox:


I see, thanks for spotting that!.
The border widgets will be put in these scaleboxes. If i just hook up this to get the location of the scale boxes. The viewport position seems the same for each box?
It’s wrong. Show your code, please.
Does it happen runtime?
the scale boxes get populated at run time yes
it only gets called once on begin play.
the ‘run app select event’ is where the borders are added:
this is the bit which adds all the border objects along with text and an image to each of those scale boxes.
The run splines event is called after which is finding those scale box locations.
I’m still learning - so some things may be organised wrong
I don’t see the event where you call tick space geometry.
You should add your widget to the viewport before getting tick space geometry. Otherwise, the results will be wrong.
the run splines event calls the code you helped create earlier:
in that second image before i have an add to viewport node at the end?
You are trying to get the position on viewport before you add the widget to it.

And you should add some delay between them:
nailed it - i was getting same result until i added delay. Thanks for bearing with me!
Sam