Yes i basically store that texture as a Texture2D in blueprints and send it as a parameter to a function in C++.
Then in C++, i modify the texture, paint it as i need.
Until here its all good. The texture is visible with the new modifications and this you can see in game and everywhere.
Except i cant save or export the texture with the new modifications. Its there always temporarily. So when i reopen Unreal its back to its former self .
Is there even a solution for this, maybe its not possible?
P.S. It seems Modify only works in Editor objects (utility widget, utility object etc.)…
So if you do this in an actor, then this is probably the reason.
just tried it. It doesnt work, unfortunately.
It just so weird that i can change the texture in the game, but cant save it as is, or export it.
This boggling my mind.
It doesnt work with a texture that you paint. It will revert back to its original self, no matter what you do.
The only solution so far, that i can think of, is to create a new texture, and copy the old texture, and save it somehow in C++. This is a complicated process though i already found some sources that may solve this by copying each pixel to the new texture.