I followed this tutorial which worked perfectly for me, but in my case, I need to change the Integer value from my Widget buttons. Every button has to set an specific value of the integer, but the thing is that I can not find how to set the specific value for every button and send it to my actor blueprint.
The Construction Script runs following the Components list when an instance of a Blueprint Class is created. It contains a node graph that is executed allowing the Blueprint Class instance to perform initialization operations.
Try to use a function and pass the values to a variable and call the function which would update the values.
You need create a Custom Event in Event Graph and call it like: “UpdateMesh”. After get a value for ObjectID and call Set Static Mesh with you new value. When you click at Button with Index in Widget, call your UpdateMesh.
Sorry for English, I attach images for understanding.