I’m trying to get to terms with Slate, but it’s being fairly uncooperative so far - though I feel I’ve gotten a fair way.
My current problem is that I have a Slate widget with a child SImage in it - depending on the state of this widget, I want the SImage to change the FSlateBrush it’s rendering.
Assigning the initial FSlateBrush is easy and it works perfectly, but if I want to change that FSlateBrush later I have no clue how I’d go about it… SImage doesn’t contain a SetBrush function or anything similar that looks like it could be used.
Hi ReqPro, normally what we do is just swap the brush we want to use. Using the attribute system you could just assign a delegate to return the needed brush for the SImage given the current state, instead of assigning a particular brush when you create it.