# MeshAnimation

### Mesh Animation

**Mesh Animation** is a procedural vertex animation system for Unity that deforms mesh geometry in real time without keyframes or ScriptableObject assets. All animations are configured directly on the component and work both in Play Mode and in the Editor preview.

#### How It Works

The `MeshAnimation` component clones the original mesh on start and applies deformations by offsetting vertices. Each effect operates around a configurable pivot point and is driven by DOTween.

#### 13 Built-in Effects

| Category        | Effects                                                           |
| --------------- | ----------------------------------------------------------------- |
| **Ambient**     | Breathe                                                           |
| **Impact**      | JellyTap, HitSquash, DentImpact, ShockwaveRing                    |
| **StateChange** | MeltDroop, CrumpleCollapse, DeathBloat, VertexScatter, MorphNoise |
| **Directional** | Twist, StretchPull                                                |
| **Lifecycle**   | BuildingEmerge                                                    |

#### Key Features

* Real-time animation preview in the Editor (Edit Mode)
* Automatic collider synchronization (Mesh, Box, Sphere, Capsule) with the deformed mesh
* Pivot system with normalized coordinates and presets
* `MeshAnimationInteract` component - 6 trigger types: Hover, Hold, Proximity, Impact, Scroll, Spawn
* `MeshAnimationGroup` - batch control over multiple components

#### Dependencies

* [DOTween](https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tkkoi-developer.gitbook.io/tkkoiassets/mesh-animation/meshanimation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
