Download

UMG element access by name or array?

I have an Editor Widget using UMG elements. I have a panel with a dozen TextBox’s and repeat that panel 4 times. Right now I have to name each and every textbox a specific name and get that textbox value.

Since I’m repeating the same thing 4 times I’d much prefer to access the textboxes by number or at least a name so I can loop on them to get values. I could probably create an array and transfer all element references to that on startup and then cycle through that.

Since this is an editor widget I’m not using a constructor to procedurally build the textboxes.

Is there a clean way to reference them without dragging dozens of element variables into blueprint and then repeating the access code for each panel group? (i.e. loop and get values for each panel)