Some strange after add child in scroll box

I build two user interface.

One is the main ui. Another is the content I want to add to the scroll box of main ui.
Like the above picture, when I click the ADD button, the Text content will add to the main ui’s scroll box.

After I add to the main’s scroll box, I want to when hover the TEXT it will appear two button. But I set a condition, if there are greater than two children, it just appear.

Therefore, I use the branch and “GET Children Count” node to achieve. I set when the number bigger than 1, it just appear the two button.

And then, the strange things appear, always the first one content will appear the two button, the newer added content doesn’t work. I don’t know why.

The blueprint screenshot:


The blueprint in maun ui, is used to add child to scroll box in main ui.

The logic when the child bigger than one, it will appear two button(Canva panel 73).
image
The blueprint in Scrollbox widget. (which is the content I want to add to the scroll box of main ui.)

Please help me, Thx!

@Everynone Sorry for disturbance!
This question I stuck few days.
If you have time, take a look please!
Thank you so much!

show the code please,or we are just feel like playing with riddler in gotham.

2 Likes

Sorry bro, I already edited.

so whats you want is if child number in scroll box greater than 1,canvas 73 will be visible?
“And then, the strange things appear, always the first one content will appear the two button, the newer added content doesn’t work. I don’t know why.”
do you mean you want let canvas 73 appear beside the widget you hovered?

1 Like

Yes. canvas 73 contain two button.
My problem is the canvas 73 always only appear the first one content even I already add three or four… text.
Yes, it should be when I hover the second, third, fourth… text, it will appear canvas 73.

so you want this


but only got the left side in my image?

1 Like

Yesss! This is my problem.

In the code you show me i never see you change canvas 73 position,so the logic now is just hover the scroller->if child>1->visible canvas 73 at static position.

Because I already build besides the text. And then use the set visibility to control.
Oh Oh, Let me think. In this way, it just a static position. Thank you let me think!

I try to let Canva73 to set render transform, but this is not a solution.

The another strange thing is if this script was written in scrollbox blueprint and don’t set the branch condition. The each one can hover and appear Canva 73 normally.

But this result is still not I wanted, so I stuck few days. :frowning:

you should let canvas 73 be a standalone widget(I mean a new bp file),and add a menu anchor to your “text” widget class,then when hoverd the “text” widget,use menu anchor to create the double button panel.

Still doesn’t work. :frowning:
Anyway, thank for your help.

you can upload your project to github if it is possible,and I will check it these days when Im free

1 Like