Slicing different sprite sheets the same way

Is there some way to slice and name different sprite sheets in the same exact way?

For example, I’ve got multiple maps in my game that will each use a different sprite sheet.

Each sheet is laid out in the same layout, but with different sprites. I’ve got a naming convention for each sliced sprite in the sheet and I want to slice the other map sheets in the same exact way with the same exact naming convention.

Is there some way where I don’t have to slice every sheet manually and name everything manually?

I’ve had a look at the meta files, they seem to have unique GUIDs for each slice, it doesn’t seem like copying the contents of the meta files would work

Well… Actually I just tried pasting the contents of the meta file from the first sheet to the other sheets (except for the first 2 lines) and it does actually work. I guess that’ll do for now.

Somewhat unrelated - but I wished Unity would include some tools to help with automatic naming of sprites using prefixes/suffixes. So I dont have to type the same thing over and over again with a _2 and _3

1 Like

Thank you for posting your solution! It’s the only way I’ve found to get this work when googling it myself :stuck_out_tongue:

Thanks - this worked for me as well!
Though I also opened the meta file in a text editor and did a find-replace on the old-filename and new-filename so that the sliced images are named correctly.

There’s also the TextureImporter scripting API