Hi Guys
I would like to add a button to the main menu, if you click on it a random widget added to Viewport but only the widgets with the name / Class widgetswitcher 001 widgetswitcher002 etc
Hi Guys
I would like to add a button to the main menu, if you click on it a random widget added to Viewport but only the widgets with the name / Class widgetswitcher 001 widgetswitcher002 etc
You can create an array of type User Widget class and then fill it with the pool of widget classes from which you want to choose randomly. Once that’s done, you can add the following logic to choose a widget class at random from the array: