---
title: Add
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/add
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/add.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:47:06.264Z
locale: en-us
---

# Add

> Adds a SkeletonNode to the RigBuilder.

## 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)

## Add(SkeletonNode)

Adds a SkeletonNode to the RigBuilder.

```csharp
public void Add(in SkeletonNode node)
```

### Parameters

**** (\[SkeletonNode]\(/engine/7000.0/script-reference/unity/animations/skeletonnode)): The skeleton node to add.

### Remarks

The index of the node is the number of nodes in the builder before the call, and it becomes the bone index in the [RigDefinition](/engine/7000.0/script-reference/unity/animations/rigdefinition.md). Add the root first, with a [SkeletonNode.ParentIndex](/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex.md) of `-1`. Add each other node after its parent, so that its `ParentIndex` is lower than its own index. To get the index of a parent from its identifier, use [RigBuilder.GetBoneIndex](/engine/7000.0/script-reference/unity/animations/rigbuilder/getboneindex.md).

Each bone has a translation, rotation, and scale channel with the identifier of its node, so the identifier must differ from the identifiers of the other nodes and of the translation, rotation, and scale channels.

## Add(LocalTranslationChannel)

Adds a LocalTranslationChannel to the RigBuilder.

```csharp
public void Add(in LocalTranslationChannel channel)
```

### Parameters

**** (\[LocalTranslationChannel]\(/engine/7000.0/script-reference/unity/animations/localtranslationchannel)): The LocalTranslationChannel to add.

## Add(LocalRotationChannel)

Adds a LocalRotationChannel to the RigBuilder.

```csharp
public void Add(in LocalRotationChannel channel)
```

### Parameters

**** (\[LocalRotationChannel]\(/engine/7000.0/script-reference/unity/animations/localrotationchannel)): The LocalRotationChannel to add.

## Add(LocalScaleChannel)

Adds a LocalScaleChannel to the RigBuilder.

```csharp
public void Add(in LocalScaleChannel channel)
```

### Parameters

**** (\[LocalScaleChannel]\(/engine/7000.0/script-reference/unity/animations/localscalechannel)): The LocalScaleChannel to add.

## Add(FloatChannel)

Adds a SkeletonNode to the RigBuilder.

```csharp
public void Add(in FloatChannel channel)
```

### Parameters

**** (\[FloatChannel]\(/engine/7000.0/script-reference/unity/animations/floatchannel)):&#x20;

### Remarks

The index of the node is the number of nodes in the builder before the call, and it becomes the bone index in the [RigDefinition](/engine/7000.0/script-reference/unity/animations/rigdefinition.md). Add the root first, with a [SkeletonNode.ParentIndex](/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex.md) of `-1`. Add each other node after its parent, so that its `ParentIndex` is lower than its own index. To get the index of a parent from its identifier, use [RigBuilder.GetBoneIndex](/engine/7000.0/script-reference/unity/animations/rigbuilder/getboneindex.md).

Each bone has a translation, rotation, and scale channel with the identifier of its node, so the identifier must differ from the identifiers of the other nodes and of the translation, rotation, and scale channels.

## Add(IntChannel)

Adds an IntChannel to the RigBuilder.

```csharp
public void Add(in IntChannel channel)
```

### Parameters

**** (\[IntChannel]\(/engine/7000.0/script-reference/unity/animations/intchannel)): The IntChannel to add.

## Add(EntityIdChannel)

Adds an EntityIdChannel to the RigBuilder.

```csharp
public void Add(in EntityIdChannel channel)
```

### Parameters

**** (\[EntityIdChannel]\(/engine/7000.0/script-reference/unity/animations/entityidchannel)): The channel to add to the rig that the builder creates.

### Remarks

The channel becomes an entity ID binding of the [RigDefinition](/engine/7000.0/script-reference/unity/animations/rigdefinition.md) that [RigBuilder.ToRigDefinition](/engine/7000.0/script-reference/unity/animations/rigbuilder/torigdefinition.md) creates. A clip drives the channel when it has a curve that animates an object reference and whose combined path and property hash equals [EntityIdChannel.Id](/engine/7000.0/script-reference/unity/animations/entityidchannel/id.md). Call this method on a builder that you created with [RigBuilder](/engine/7000.0/script-reference/unity/animations/rigbuilder/ctor.md). Otherwise, if safety checks are enabled, the method throws a `NullReferenceException`.

## Add(SocketNode)

Adds a SocketNode to the RigBuilder.

```csharp
public void Add(in SocketNode socketNode)
```

### Parameters

**** (\[SocketNode]\(/engine/7000.0/script-reference/unity/animations/socketnode)): The SocketNode to add.
