Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Changing texture size inside bundles

Discussion in 'Asset Bundles' started by Veetha, Feb 14, 2021.

  1. Veetha

    Veetha

    Joined:
    Jun 27, 2017
    Posts:
    6
    Hello,
    we have a lot of bundles on our server, like hundreds. Each bundle is one prefab with its texture (plus material etc). When we originally built these bundles we set the max texture size for each platform in texture import setting, but now we consider we were too optimistic regarding some less capable platforms and we decided we want to decrease it. Gathering original assets and create bundles again would be painful and very time consuming. I am trying to find a way to write a server script (it can be unity script) that would go through all the bundles and change the texture import setting, reimport and recreate bundles or somehow change texture sizes inside bundles.
    So far I failed to find any usable way. I would be glad for any idea how to achieve this.
    Thank you in advance.
     
    Last edited: Feb 14, 2021
  2. Veetha

    Veetha

    Joined:
    Jun 27, 2017
    Posts:
    6
    And on top of that I just found our textures aren't enabled for read/write :-(