Unity – 在运行时生成 SpriteSheets!
Unity and plugins provide many great ways to build Sprite Sheets. However they're used directly into Unity Editor or with an external software which is perfect in many case, but none provide the ability to generate SpriteSheets at runtime.
The RectanglePacking algorithm is a port of the AS3 version made by Ville Koskela. Assets used in the demo come from Kenney.
You could combine the generated Sprite Sheets.png with a pngquant compression via this script PngQuantNativeProcess.
Please note that Unity provides a Texture2D.PackTextures method, I didn't test it nor made benchmark performances.
Add the AssetPacker component to your GameObject:
…暂无开放 Issues,或尚未同步最近议题。