SkillAgentSearch skills...

UnitySpriteGPUInstancing

A Unity Sprite GPU Instancing Implementation Demo

Install / Use

/learn @ownself/UnitySpriteGPUInstancing
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Unity Sprite GPU Instancing

A Unity SpriteRenderer GPU Instancing Implementation Demo

Batching SpriteRenderer

Unity Version : 2019.4

Key features:

  • Replace SpriteRenderer with custom MeshRenderer at runtime
  • Using Vertext shader to represent PixelsPerUnit and offset in Sprite
  • Combine textures with Texture Array, so textures need to be at same format and size
  • Use MaterialPropertyBlock for GPU Instancing feature of Unity

Related Blog:

For more information, please check out my Chinese blog post: Unity Sprite GPU Instancing

View on GitHub
GitHub Stars138
CategoryDevelopment
Updated9d ago
Forks24

Languages

HLSL

Security Score

80/100

Audited on Mar 20, 2026

No findings