FSlateBrush Brush should be a class variable. You create it on stack and then passing pointer to stack variable, but it immediately destroyed when it goes out of scope.
FSlateBrush Brush should be a class variable. You create it on stack and then passing pointer to stack variable, but it immediately destroyed when it goes out of scope.