- Home /
How to find what texture compression was forced for build?
How to find what option was set to compress the texture in Build Settings, when the application is already running on Android? Something like EditorUserBuildSettings.androidBuildSubtarget, but from a device NOT in the editor. I can save that data at build time and read it afterwords, but I wondered maybe it is marked somewhere already (AndroidManifest ?) so I can read it at run-time.
Answer by Yury-Habets · Mar 05, 2015 at 04:26 PM
You can find it in element of Android manifest: http://developer.android.com/guide/topics/manifest/supports-gl-texture-element.html
Thanks, but that doesn't seem to work reliably. I don't see any of those elements in my manifest after it has been built.
It should be there, you can check the StagingArea manifest. I just switched texture compression to Tegra and got this in the manifest:
supports-gl-texture android:name="GL_EXT_texture_compression_dxt1"
supports-gl-texture android:name="GL_EXT_texture_compression_dxt5"
supports-gl-texture android:name="GL_EXT_texture_compression_s3tc"
If you don't override the compression settings, this element is not added to the manifest.
Your answer
Follow this Question
Related Questions
Android. Texture Compression 0 Answers
Comparing texture compression in build settings and texture overrides 1 Answer
Android Device Texture Compression issue 0 Answers
Alpha 8 to save Texture size? 4 Answers