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.