Do I need to explicitly trash Slate brushes when my widget destructs?
Heya! I have a UWidget class where I overrode the RebuildWidget() function to do some SImage drawing. In the constructor, I create a bunch of UTexture2D and FSlateBrush. My question is: do I need to delete these myself in a destructor, or are they handled automatically?
No, GC only cleans UObject so you need to destroy them with delete.... but you don't need to dynamically create them with "new", they are structs and made to declere then statically, then they will go out with object
Follow this question
Once you sign in you will be able to subscribe for any updates here