Mesh Animation
GPU mesh animation library that renders hundreds of animated meshes in a single draw call using GPU instancing. Bakes vertex animation frames to texture and uses a custom shader to animate vertices on the GPU, enabling efficient large-scale mesh animation with Material Property Blocks for per-instance variation. Supports up to 2048 vertices per mesh with Humanoid rigs.
com.codewriter.meshanimation 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/meshanimation.git README Markdown
Copy this to your project's README.md
## Installation
Add **Mesh Animation** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/meshanimation.git
```
[](https://www.pkglnk.dev/pkg/meshanimation)Dependencies (1)
README
Mesh Animation 
Mesh Animation is lightweight library for rendering hundreds of meshes in one draw call with GPU instancing.
NOTE: To use MeshAnimation library you need to install Tri Inspector - Free and open-source library that improves unity inspector.

How it works?
Mesh Animation bakes vertex positions for each frame of animation to texture. Custom shader then move mesh vertexes to desired positions on GPU. This allows draw the same original mesh multiple times with GPU Instancing. Unique animation parameters are overridden for each instance with Material Property Block.
Limitations
- Supported up to 2048 vertices per mesh.
- Bakes one SkinnedMeshRenderer animation per prefab.
- Requires special shader for vertex animations.
- Animations can only be baked in editor mode.
- Possibly low animation quality on some GPUs.
- Vertex animation may be not supported on some old devices.
How to use?
- Create Mesh Animation Asset (in
Assets/Create/Mesh Animationmenu). - Assign skin, shader and animation clips fields in inspector.
- Click
Bakebutton. - Assign generated material to gameObject.
- Add
MeshAnimatorcomponent to gameObject. - Play animation from code.
gameObject.GetComponent<MeshAnimator>().Play("Zombie Walking");
FAQ
Which Rig AnimationType are supported?
Works with Humanoid. Not works with legacy. Other not tested.

No comments yet. Be the first!