Counting total widgets.

Is there any way to easily determine the total number of active widgets?

I could iterate through each one with a “All Widgets of Class” array, but I have more than 30 different types of widgets and am looking for a quicker solution.

You can get all widgets of class UserWidget. This shoud be default class for all your widgets, I suppose…

Hi Sertac,

Ya, that’s pretty much the solution I’ve arrived at too. Was hoping for a “Get All Widgets” simplified function to shorten the legwork, but this will work.

Thanks!

Hello akting,

Maybe this helpful your problem. Created array type of “UserWidgetClass” and add all widget in array. Then count all.

You are welcome akting. If your problem resolved don’t forget mark post. This is important for those who have the same problem. If you do not know how it is done, you can look at the link.

Perfect! This is what I was looking for, works great!

Yeap this is cool redbox :slight_smile: