- Home /
How I can get size from compressed texture?
I need a texture size after compression. Such information is in the preview window(look image linked below), and I do not know how I can get it. Of course I'm interesting in how to get this information from the editor.
Answer by Noxury · Aug 20, 2015 at 05:55 PM
Use Profiler.GetRuntimeMemorySize(), which will return the amount of memory consumed by the asset. Note that this will work not only for textures, but for any asset in the game.
Look here for more informations of compression values (bytes per pixel).
Your answer
![](https://koobas.hobune.stream/wayback/20220612000605im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Default Texture Platform/Format settings 2 Answers
Draw texture in editor with size less than a single unit 2 Answers
Failed to generate ETC texture UnityEditor.HostView:OnGUI()...Why? 0 Answers
Editor class "Texture Importer" question (applying settings to multiple texture assets). 2 Answers
Get the real texture size? 1 Answer