Shuffle widget buttons position

So, I have 3 buttons (1, 2, 3), I want them to load in random position every time widget is loading. Example: 3, 1, 2; 2,3,1 and so on. I have no idea if that is correct or not, but I tried to create an array and shuffle it, connected it in Construct, and Pre-construct too, but it seems I’m missing something as it doesn’t work. Where should I place it or how do I achieve that?
Thanks

1 Like

I tried to create an array and shuffle
it

You might be referring to the Make Array node here; shuffling that will not work well, indeed. Placing buttons in a proper Array of Buttons should do the trick, though:

Pre-Construct allows you to preview changes in the editor and will fire when the widget is created, too. A Custom Event can be hooked up to the same execution chain and executed run-time, if needed.

Image from Gyazo

1 Like

Thank you very much. That’s exactly what I needed!