If you need only 2-3 sprites out of 30 from PNG sprite file, what do you do?

Hi!
Imagine you have a big PNG file containing lots of sprites, example attached, and you need only 2-3 sprites in your game - what do you do?

manually (in graphics editor) extract those sprites you need to new PNG file?

Can Unity Sprite Atlas help with this automagically?
From Docs Unity - Manual: Sprite Atlas workflow it is not clear does the sprite atlas replace (i.e. makes not needed, excludes) source PNG files from compiled project or not…

in other words, what to do:

  1. create sprite atlas,
  2. add sprites needed,
  3. for each sprite renderer in a scene replace pointer to Sprite from PNG file to Sprite atlas manually? or this step is automatic?

thanx!

7556176--934366--test.png

just manually do it in a graphics editor it will take you 30sec to do it, dont break your head over this

I already have gameobjects with sprite renderer set to that atlas…

Doing that manually means:

  1. create new PNG atlas with only needed sprites
  2. slicing new PNG atlas to sprites in unity
  3. for each gameobject with sprite renderer - replace pointer from old PNG to new PNG

is there something to speed that up?

there was once a man who had to rename 100 files, he could have done it in 10minutes but this man was a coder so he took 20minutes to create a batch renamer and got the job done that way. The other man spent 10min and renamed the files manually.

You just have to decide what kind of man you want to be.

To answer your question, yes you could make such a thing but it would take more time than it will be to just manually do it.

Also you dont need to slice sprites to create an atlas