- Home /
List of supported texture formats
Is there any way to get a list of supported texture formats in unity or would I have to collect my own list?
I'm writing a model post processor to target a problem, where objects that have more than one texture assigned don't auto-load the textures because they get a material prefix followed by the texture name like "Stone__Stone" or "Stone_Stone_Png".
Now the first part is simple to fix but then the png part comes in. I'd basically like for my processor to ignore the image extension when creating the materials.
The issue with this can't be solved by simply removing everything after a last underscore as each material applied to the model in OnAssignMaterialModel doesn't always come with the extension so this is why I need a list to check towards.
The main reason for doing this is for large scale projects where you'd have 10's of materials possibly for several buildings, where you'd have to manually assign the textures or rename materials to fit your needs in the long run.
Also another problem with this is that if you apply 2 textures to 1 object you tend get 2 separate materials, while if a different object simply uses 1 of the same texture you'd have 2 materials for 1 texture causing performance loss in the long run.
Answer by MrSoad · Dec 12, 2014 at 04:52 PM
From this page :
http://docs.unity3d.com/Manual/class-TextureImporter.html
of the docs :
"Supported Formats
Unity can read the following file formats: PSD, TIFF, JPG, TGA, PNG, GIF, BMP, IFF, PICT. It should be noted that Unity can import multi-layer PSD & TIFF files just fine. They are flattened automatically on import but the layers are maintained in the assets themselves, so you don’t lose any of your work when using these file types natively. This is important as it allows you to just have one copy of your textures that you can use from Photoshop, through your 3D modelling app and into Unity."
No idea how I missed that as I was just on this page, thank you.
The page has changed since then. Now it is here: https://docs.unity3d.com/$$anonymous$$anual/ImportingTextures.html
Your answer
Follow this Question
Related Questions
Stop compressing image on Android 0 Answers
Why is my texture like this? 1 Answer
Update Texture type to GUI during runtime 0 Answers
Converting a RenderTexture to a Texture2D for use in a shader 2 Answers
Override texture import path 0 Answers