• Stars
    star
    432
  • Rank 97,187 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fast GPU vertex shader based animation library for Unity (VAT, Vertex Animation Texture, Morphing Animation)

Mesh Animation Github license

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.

preview

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?

  1. Create Mesh Animation Asset (in Assets/Create/Mesh Animation menu).
  2. Assign skin, shader and animation clips fields in inspector.
  3. Click Bake button.
  4. Assign generated material to gameObject.
  5. Add MeshAnimator component to gameObject.
  6. Play animation from code.
gameObject.GetComponent<MeshAnimator>().Play("Zombie Walking");

Mesh Animation

FAQ

Which Rig AnimationType are supported?

Works with Humanoid. Not works with legacy. Other not tested.

More Repositories

1

Tri-Inspector

Free inspector attributes for Unity [Custom Editor, Custom Inspector, Inspector Attributes, Attribute Extensions]
C#
732
star
2

UniMob

Modern reactive programming library for Unity (inspired by MobX js)
C#
166
star
3

UniMob.UI

MVU/Redux like library for building declarative UI in Unity (inspired by Flutter)
C#
98
star
4

Expression-Parser

Simple math expression parser library for Unity
C#
45
star
5

View-Binding

View binding library for Unity. Built over UniMob
C#
25
star
6

Package-Symlinker

Package Symlinker is a tool that allows you create symbolic links to packages, so you can edit any package as if it were located right in the project.
C#
24
star
7

Morpeh.Events

Lightweight events for Morpeh
C#
21
star
8

textmeshpro-spriteatlas-support

Tool that converts SpriteAtlas to TextMeshPro Sprite asset
C#
19
star
9

SceneMaterialAnalyzer

Tool for analyzing materials and shaders used in scenes
C#
14
star
10

Style-Components

Library for styling game objects in Unity. . Built over UniMob and View-Binding.
C#
12
star
11

RequireFieldsInit-Analyzer

C# 11 "Required Members" for Unity
C#
9
star
12

NpmPublisherSupport

Publish Npm packages to your registry directly from the Unity
C#
7
star
13

Morpeh.SystemStateProcessor

Reactivity for Morpeh ECS
C#
7
star
14

UniMob.UI-Samples

Samples for UniMob.UI - a declarative library for building reactive user interface
C#
6
star
15

SampleApp-Clicker

Sample app uses UniMob, UniMob.UI, View-Binding, Style-Components, Morpeh, Morpeh-UniMob-Globals. Simplest game. Just click play and wait for timer end.
C#
4
star
16

Morpeh.StateMachine

C#
4
star
17

Unity-Localization-Stub-for-Tri-Inspector

[Not affiliated with Unity Technologies.]
C#
1
star