I have a problem. I wan to show allways 3 horizontal boxes but i only can see one. It is able to scroll to see the others but i want to see allways 3 horizontal boxes while scrolling or not scrolling
Your widget W_ShopPoster doesn’t have a set width and height. When it gets added to the viewport (or your HUD widget, based off the second screenshot) it needs to be set to your specified width and height.
You have two choices.
-
Modify your W_ShopPoster by wrapping the ScrollBox with a SizeBox and give it a width and height override.
-
Modify your container widget (HUD I’m assuming) to have a set size for the W_ShopPoster when you add it.
Firstly thank you for your fast answer
it looks very simple but still not work. I tried out both choices and nothing worked. Same problem.
I found my solution. The W_shop poster was added by a widget switcher and this was wrapped by an box. I changed the size of it