Skip to content

Texture2DArray compression doesn't change with platform switch in Unity 2020.2.0f1 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
carcasanchez opened this issue Jan 27, 2021 · 5 comments
Assignees

Comments

@carcasanchez
Copy link

Expected behaviour: When changing platforms, it's expected that Texture2DArrays switchs its compression format, as the original texture does.
Formats are RGBA Compressed DTX5 for Windows, RGB(A) ASTC 6x6 for Android
Current behaviour: when switching platforms, original textures change formats, but the derived Texture2DArray maintains its old format.
Unity version is 2020.2.0f1. Texture2DArray Importer version is 1.2.0. Tested in an empty project.

Sept by step:
Create a Texture2DArray while Windows platform is selected and assign textures to it (from left to right, build settings, texture inspector and array inspector):
imagen

Switch to Android platform, with Texture Compression set to ASTC in build settings. Texture format and array format mismatch after switch,
imagen

Same behaviour appears when order is reversed. Create a Texture2DArray in Android, and assign textures to it.
imagen

Switch to Windows platform. Eexture format and array format mismatch again:
imagen

@pschraut
Copy link
Owner

Thank you for the report.

I was able to reproduce the same problem. It seems it's related to the Asset Pipeline version in Unity. In Unity 2019.4 you can switch between Asset Pipeline v1 and v2. The reported issue occurs with Asset Pipeline v2 only. I believe newer Unity versions don't offer the option to use v1 anymore.

I've submitted a bug-report to Unity Technologies describing the problem. I will update the issue here when I hear from them. Below you can find the bug-report case number from Unity and the video which was part of the bug-report.

(Case 1309841) AssetPipeline v2 does not reimport Texture2DArray when build target is changed
https://youtu.be/VBmFYf1Ih4g

@pschraut pschraut self-assigned this Jan 27, 2021
@AtomicJoe1
Copy link

Great catch!

@pschraut
Copy link
Owner

pschraut commented Feb 6, 2021

Unity Technologies was able to reproduce the issue and it can be found in their public issue tracker now:
https://issuetracker.unity3d.com/issues/editor-does-not-reimport-texture2darray-when-build-target-is-changed

@AtomicJoe1
Copy link

Just voted for it :)

@pschraut
Copy link
Owner

I just released 1.3.0 , which should fix this issue. Can you give it a try and let me know if it works for you too? Thanks go to Bastien of Unity Technologies for the help (basically providing the workaround/fix).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants