Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

find the size of the compressed texture inside a bundle using editor script

Discussion in 'Scripting' started by mkandula, Oct 17, 2014.

  1. mkandula

    mkandula

    Joined:
    Oct 16, 2014
    Posts:
    16
    Hi

    Can someone share how to find compressed texture inside a assetbundle ? I need to do this during the build stage which is ran from an editor script.

    Also how can I know if a texture inside a assetbundle is a reference or actually stored inside this bundle ?
    Does AssetBundle.LoadALL() returns textures only stored inside it or it loads referenced textures also and returns it ?

    Thank you
    Madan
     
  2. mkandula

    mkandula

    Joined:
    Oct 16, 2014
    Posts:
    16
    I need to write a script that finds the total compressed texture sizes within bundles. Please let me know some sample code.