11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

1/5
通过静态批处理优化 Sprite 渲染。 即使屏幕上有数千个精灵也没有问题!
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2022.3.60f1
兼容
兼容
兼容
其他兼容性信息
  • Verified compatible through Unity 6
描述

Discord Support | Forum | Email


Static Sprites is a lite tool to optimize the rendering of non-moving sprites. The improved performance means you can now render thousands of sprites on even low-end mobile devices without a hitch!


As a technical background, Unity normally dynamically batches the rendering of sprites as an optimization. Dynamic batching means it groups the geometry into similar renderable batches each frame, and this generally works pretty well for small moving geometry. However, dynamic batching is not optimal for non-moving sprites, since the CPU still does a lot of work constructing the batches each frame. If you open the Unity Profiler or Frame Stats, you can check the Dynamic Batching batched draw calls count. That is all the redundant work, since the sprites don't move.


Static batching on the other hand, is much faster as it pre-generates the batches and geometry to be rendered just once. However, Unity's static batching system only works for meshes, unfortunately. Toggling the Static checkbox on sprites does nothing.


That's where Static Sprites comes in. Simply attach this component to a game object, and any sprite that is in the hierarchy under it is statically batched on start. It does this automatically, intelligently combining sprites into singular meshes while respecting differing materials, textures, atlasing, colors, sorting orders and layers, and Flip XY direction.


Features

  • Automatically static batches non-moving sprites
  • Supports differing textures, colors, materials, atlasing, sorting layer ID, sorting order, and Flip XY
  • API to unbatch sprites as well
  • Support for exporting combined sprites to a folder outside Play mode

See Technical Details for in-depth details.


And that’s it! If you are using sprites in your game, this is an easy-win for optimization.

Increase your framerate, save battery life, and render more sprites!


Discord Support | Forum | Email

技术细节

Static Sprites works by disabling the SpriteRenderers on any children game objects in the hierarchy of the attached component on start, and generating new combined sprite meshes to be rendered in their place. The combined mesh contains the proper geometry and UV coordinates to render the contained sprites, and a new combined mesh is generated for each grouping of differing textures, colors, materials, sorting order, etc. The less variations you have, the better the grouping can be. In the optimal scenario, it can be just 1 drawcall rendering 1 giant mesh, if all the sprites are placed within the same atlas. This works with sprite atlasing as well, which is highly recommended when rendering sprites to achieve optimal performance.


Additionally, there is support for exporting combined sprites out to a folder. This is not required for using Static Sprites, but may speed up startup times if there are a very large number of sprites to be combined.


Please note that while static batching is great for performance, some care must be taken if many of the sprites will not be visible at the same time, as static batching can hinder the functionality of camera frustrum culling and cause needlessly extra vertices to be sent to the GPU.

Static Sprites

(暂无评分)
37 users have favourite this asset
(37)
$14.90
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
1.9 MB
最新版本
1.0.3
最新发布日期
2025年4月17日
原始 Unity 版本
2022.3.60
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR