- Home /
Question by
Paulius-Liekis · Feb 09, 2012 at 09:30 PM ·
textureassetbundleassetsize
Get asset size from script
Can I get asset size from script? For example I'm intereted how much video-memory Texture takes?
Or can I get size of all assets in the AssetBundle from script? I could potentially check file size on disk, but that would give me compressed size...
Comment
Best Answer
Answer by Paulius-Liekis · Jul 25, 2012 at 10:31 AM
Profiler.GetRuntimeMemorySize() seems to be the closest thing to what I need
Your answer
![](https://koobas.hobune.stream/wayback/20220613063930im_/https://answers.unity.com/themes/thub/images/avi.jpg)