Unity: Bulk Import Settings

Recently in one of my game’s our build size was too large. And we had to update a whole lot of images compression settings. These images were png sequences of a full screen transition. The transition took the player from base game scene to a bonus scene.


Problem

Each transition png was 1080 X 1920, about 2 Mb with Compression setting at High Quality.

Each transition png sequence was about 80 pngs.

There were about 24 folders of each transition sequence.

So in total there were 1920 images spread across 24 folders.

So going to each folder in Unity, updating compression settings and waiting around 45 seconds for Unity to re-compile images was not a good idea. Given that I had 24 folders to do.


Solution

I had used Visual studio’s Replace in Files tool to update animation meta files way back when renaming animations keys were not possible in the Unity Editor.

So I decided to use the same tool to bulk rename all the Meta files of the png sequence that holds the compression settings.

01

Find values needed to be updated in the Meta file.

(for my setup)
Replace
textureCompression: 2
with
textureCompression: 1

Check Match whole word

02

Go to Look In:

(for my setup)
Select the parent folder that has all the 24 folders of the png sequence.

03

Change the File Type to:

* .meta*


Press Replace All

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments