Mesh Animation
GPU mesh animation library for unity
com.codewriter.meshanimation Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/meshanimation.git 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.
Total Installs
0
Last 30 daysUnique IPs
0
Approximate usersInstalls Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
Markdown
[](https://www.pkglnk.dev/pkg/meshanimation)HTML
<a href="https://www.pkglnk.dev/pkg/meshanimation"><img src="https://www.pkglnk.dev/badge/meshanimation.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!