Sometime you can see some strange textures like this:
,
with a very limited import option
.
It looks like texture.dds.asset and of course you can’t edit it in any editor.
Here is a script to convert it to .png:
6199238–680228–DDSAssetToPNGConverter.cs (847 Bytes)
1 Like
Just drop it to any scene Gameobject, assign a .asset texture, and press export. You’ll find it in the root of your project.
1 Like
Doesn’t work i used a .DDS format image
ArgumentException: Failed SupportsTextureFormat; format is not a valid TextureFormat
UnityEngine.EditorSystemInfo.SupportsTextureFormat (UnityEngine.TextureFormat format) (at <82c503977c5347cf82f44677f633fcf6>:0)
UnityEngine.SystemInfoShimBase.SupportsTextureFormat (UnityEngine.TextureFormat format) (at <82c503977c5347cf82f44677f633fcf6>:0)
UnityEngine.SystemInfo.SupportsTextureFormat (UnityEngine.TextureFormat format) (at <82c503977c5347cf82f44677f633fcf6>:0)
UnityEngine.Texture.ValidateFormat (UnityEngine.TextureFormat format) (at <82c503977c5347cf82f44677f633fcf6>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Int32 mipCount, System.Boolean linear, System.IntPtr nativeTex) (at <82c503977c5347cf82f44677f633fcf6>:0)
UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Boolean mipChain) (at <82c503977c5347cf82f44677f633fcf6>:0)
DDSAssetToPNGConverter.CopyAndSavePNG () (at Assets/Scenes/CharacterScene/Images/DDSAssetToPNGConverter.cs:25)
DDSAssetToPNGConverter.Update () (at Assets/Scenes/CharacterScene/Images/DDSAssetToPNGConverter.cs:17)