GigaNeo invented a way how to reduce sprite animations weight X-times!
Do you want to save from 50% to 96% assets memory?
Ready solution for Unity Game Engine is available in Asset Store
Example created using Video Packer:
Generate video animations from image sequence which is ideal cross-platform format.
Such set of frames can be exported with built-in VideoPacker Utils or in every animation tool like After Effect, Adobe Flash and Many More.
Recommended images format is PNG.
According to Video Player documentation, .webm VP8 files are supported on every platform, which Unity supports (IOS, Android, Windows, Mac OS, WebGL etc.)
1. What is the reason and conditions to use Video Packer?
When you have huge amount of animations related to few objects. For example a main character controller which have a lot of moves, but can be visualized only with one VideoPlayer. Such example is included to the project. In big game you can save hundreds of megabytes in such way.
It’s better to have NOT many VideoPlayers at the same time due to performance.
2. How to use Video Packer?
Click VideoPacker/Help in Unity TopBar menu to read full GettingStarted guidance.
Basically, you are providing path to first frame in the folder of images. Name of every frame should include index number (../0_image.png). Then VideoPacker will iterate over all frame images and create lightweight video file at specified path.
3. What is the size of Video Packer?
Video Packer is an Editor tool. It means it weighs nothing in the build. Just make sure nothing is referenced by mistake.
In Editor it consist of:
Binary libraries 62.8 mb
Demo content 43 mb
C# source code 157 kb
4. Which Editor platform is better Mac OS or Windows?
In Mac OS we observe higher compression, generated video are smaller. It’s because of libraries and hardware differences. However on Windows it potentially keeps better quality.
So if you want higher compression and have a choice – Mac OS fits more.
5. How to reduce video size even more?
There is a great trick:
Choose max frame rate when packing the video and then just play this clip slower. As a result you have short video clip with smaller size and same count of frames.