decentraland / asset-bundle-converter

Unity project for converting GLTFs to AssetBundles
Apache License 2.0
3 stars 9 forks source link

fix: catch texture compressed formats #105

Closed dalkia closed 1 month ago

dalkia commented 1 month ago

Fixes #1502 (https://github.com/decentraland/unity-explorer/issues/1502)

The scene was not converted due to a Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats. exception

According to Unity Docs, EncodeToPNG() does not work with compressed formats. This PR catches that exception