Hair selector UI buttons problem

My BP for hair change with Num1, Num2 and Num3 are working fine, but i want to change hairstyle by pressing the icon in my UI.
Any idea?

I’ve made 3 functions (Hair1, Har2, Hair3) that changes the statical mesh on virtual bone “hair” placed inside head with 1 of 3 avaiable Hairstyles,

My BP for hair change with Num1, Num2 and Num3 are working fine, but i want to change hairstyle by pressing the icon in my UI.
Any idea?

I have tried to bind the function inside my UI Widget graph, but he say something like “not part of ThirdPersonController_C” and give me error.
Sorry for my English if bad. I’ll send images if requested. Thanks.

Take a look at some programming fundamentals, everything will make a lot more sense trust me. Anyways, UI widgets have events, you figured that out. You tried to cast a UI widget into a character (which failed, obviously). An easy fix would be to cast the player’s character (you can get that via the GetPlayerCharacter node).