• Stars
    star
    498
  • Rank 88,494 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created about 4 years ago
  • Updated almost 2 years 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#
921
star
2

UniMob

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

UniMob.UI

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

Expression-Parser

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

textmeshpro-spriteatlas-support

Tool that converts SpriteAtlas to TextMeshPro Sprite asset
C#
38
star
6

View-Binding

View binding library for Unity. Built over UniMob
C#
27
star
7

Morpeh.Events

Lightweight events for Morpeh
C#
25
star
8

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#
25
star
9

TutorialMaskForUGUI

UI Tutorial Mask is a component for highlighting specific objects over darkened background for Unity UI (uGUI)
C#
15
star
10

SceneMaterialAnalyzer

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

Style-Components

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

Morpeh.SystemStateProcessor

Reactivity for Morpeh ECS
C#
10
star
13

RequireFieldsInit-Analyzer

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

NpmPublisherSupport

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

UniMob.UI-Samples

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

Morpeh.StateMachine

C#
5
star
17

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
18

Unity-Localization-Stub-for-Tri-Inspector

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