Skip to main content
Participant
May 16, 2023
Answered

Substance 3D For Unity Plugin: PNG format instead of TGA

  • May 16, 2023
  • 1 reply
  • 616 views

I am using Unity 2022.2.10 and imported the Substance 3D plugin. When I import an SBSAR file it always imports/generates textures as .tga format files. Is there a way to change format of the textures to PNG in the settings of the substance plugin for unity?

This topic has been closed for replies.
Correct answer cansuaydın

I actually figured it out, SubstanceEditorEngine script has the texture generation with TGA format function, I just changed it to PNG and works perfectly for me 

1 reply

cansuaydınAuthorCorrect answer
Participant
May 17, 2023

I actually figured it out, SubstanceEditorEngine script has the texture generation with TGA format function, I just changed it to PNG and works perfectly for me 

Participant
July 21, 2023

Thanks. With the latest substance plugin for unity the Targa output is in the SubstanceGraphSOExtensions class. You have to change EncodeToTGA to EncodeToPNG and also the extension from TGA to PNG, for all the occurences. If anyone from Adobe is reading this, I'd like to request a small feature - it would be great to be able to configure this as the initial setup of the plugin and have it saved into settings. I like PNG more than TGA because it uses less space so it doesn't bloat the git repo.