How to change character material with UMG ?

So here is my character :

as you can see, he has 5 materials. So what I want to do is to be able to change any material using some umg buttons, I tried by creating a custom event but it don’t seems to work :

258597-d.png

258598-c.png

The Out Actors is an array, maybe try to get a specific actor first.

Several things to debug:

  • Is your OnClicked event firing? (add a print string before the get all actors)
  • Is your isBlue event firing? (add a print string before the set material by name)
  • Is your material slot name properly input? (trimmed without trailing spaces or special characters)
  • Did you try to set material by element index instead to see if it worked?

Any one of these will give you insight into what is happening and help you fix it.