30
2018
Sprite Sheet Flip Book Shader
![]()
Converted this old animated sprite sheet script into shader,
its useful for animating sprites from sprite sheet. (when Animator is too heavy for simple sprite animation)
Could be extended to have billboard option.
Shader source: *Updated: 30/11/18 to fix index wrapping and UV direction
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Sprites/FlipBook.shader
Note:
– Texture should have wrap mode: Repeat *Now works with both wrapping modes (and index 0,0 start from top now)
Resources:
– Used this sprite sheet for the explosion https://opengameart.org/content/explosion-sprite

Some debugging drawings in excel..
![]()
Related Posts
4 Comments + Add Comment
Leave a comment
Recent posts
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












Thanks for sharing this. As it is, it’ll nicely work for things that repeat constantly. Do you know how you’d go about making it a one-shot animation? You’d need some way of triggering it to start on the correct frame and stop rendering once it hit the last frame.
Thanks you !
Great tutorial on sprite sheet flip book shaders! This approach works really well for particle effects and animated sprites in Unity. One tip I would add: when working with sprite sheets that have many frames, using power-of-two texture sizes (256×256, 512×512) helps avoid padding issues and improves GPU performance. For anyone looking to quickly generate sprite sheets for their Unity projects, AI-based tools can save a lot of time compared to hand-drawing each frame.
thanks AI seo bot : ) *but your tool does look nice!