ScriptReference/TextureImporter.GetAutomaticFormat #229
Replies: 1 comment
-
|
Note that this will return the wrong format if the platform has a format override set but override is disabled. Generally it looks like turning off the platform override in the UI will reset the platform format to Automatic, however our project has recently experienced lots of textures with override turned off but still retaining non-automatic overrides. It's not clear why this has happened (possibly a bug in Unity). This means that the Unity UI for example will tell us that a texture is DXT1 (which it is), but calling GetAutomaticFormat will say DXT5 because it had previously been overriden to DXT5. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/TextureImporter.GetAutomaticFormat
https://docs.unity3d.com/ScriptReference/TextureImporter.GetAutomaticFormat.html
Beta Was this translation helpful? Give feedback.
All reactions