---
title: ToRigDefinition()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/torigdefinition
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/torigdefinition.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:22:46.788Z
locale: en-us
---

# ToRigDefinition()

> Creates a RigDefinition from the current RigBuilder data.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public BlobObjectReference<RigDefinition> ToRigDefinition()
```

### Returns

| Type                                                                                                       | Description                                                  |
| ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [BlobObjectReference\<RigDefinition>](/engine/7000.0/script-reference/unityengine/blobobjectreference1.md) | The reference to the new RigDefinition. You must dispose it. |

### Remarks

The returned reference keeps the rig definition alive until you dispose it. Pass its [BlobObjectReference\<T>.Value](/engine/7000.0/script-reference/unityengine/blobobjectreference1/value.md) to the methods that take a rig definition, and store the reference itself in the jobs that use the rig.
