How to print assetbundle build size in console?


i want to know if it´s possible to print out some information from the “editor-log” file directly in the unity-console?
When i build my assetbundles via editor-script, it would be cool the get the exported compressed file size straight in the unity IDE without open the editor log and scroll to that entry…

If its possible - how ? :slight_smile:
Thanks for your time…

To get the bundle file size:

using System.IO

FileStream fs = new FileStream(assetBundlePath, FileMode.Open) ;
int fileSize = -1;
if(fs != null)
   fileSize = fs.Length ;

To display it, you can rather using Debug.Log() to print it in console, or using UnityEditor.EditorUtility.DisplayDialog();