Announcement

Collapse
No announcement yet.

How to save UTexture2D to PNG file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    This was one of the threads that I stumbled across while trying to figure out how to get screenshots to save to a completely outside-the-engine location. It's not directly related to saving UTexture2D, but I did come up with a way to save a TArray<FColor>: https://forums.unrealengine.com/deve...data-to-a-file

    Comment


      #17
      Hi! Rumbleball solution does not work in packaged game because UTexture::MipGenSettings is editor-only data.
      Besides, BulkData size is different between cooked and non-cooked data...
      How can I extract texture pixel array for cooked UTexture?
      Thank you!

      Comment


        #18
        I'm pretty sure that worked for us in 4.16/4.19. Haven't been packing for long time now, but maybe will run into this then.
        NodePrefabs | PluginBuilder | NotificationBackbone | WidgetBox | DebugWidget

        Comment

        Working...
        X