How create SMeshWidget?

I watched a video that mentioned creating an SMeshWidget instead of the usual Widget to display Enemy Health. I can’t remember which it was or how to make one.

i googled and there is old, 2016, post on this forums. With some code in c++:smiley:

That slate mesh widget was removed soon after 4.11 i think.

Managed to find it … https://youtu.be/v9k-J2GeEKI?si=OFI0hVB6F24fpjPa&t=1023

Trouble is, I still have no idea how this is supposed to work.

Anyone?

Just guessing here, from what i have seen in that YT tutorial (btw great tut).

  • those widgets are instanced static meshes (i think)
  • you need material that can handle instanced mesh parameters
  • material then animates *like changes bar length etc) self from that instanced mesh parameter

It is kind of hack that uses instanced meshes to display slate stuff.

Well all that is guessing from tut.