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

# TryGet

> Gets the skeleton node that has an identifier.

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

## TryGet(StringHash, SkeletonNode)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out SkeletonNode node)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[SkeletonNode]\(/engine/7000.0/script-reference/unity/animations/skeletonnode)): When the method returns, the node that has the identifier, or the default value if there's none.

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(int, SkeletonNode)

Gets the skeleton node at a bone index.

```csharp
public bool TryGet(int boneIndex, out SkeletonNode node)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The bone index of the node to get.**** (\[SkeletonNode]\(/engine/7000.0/script-reference/unity/animations/skeletonnode)): When the method returns, the node at the bone index, or the default value if the index is out of range.

### Returns

| Type                                                          | Description                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node at the bone index. Otherwise, false. |

### Remarks

The bone index of a node is its index in the builder, which becomes its bone index in the [RigDefinition](/engine/7000.0/script-reference/unity/animations/rigdefinition.md). To get the bone index of a node from its identifier, use [RigBuilder.GetBoneIndex](/engine/7000.0/script-reference/unity/animations/rigbuilder/getboneindex.md).

## TryGet(StringHash, LocalTranslationChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out LocalTranslationChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[LocalTranslationChannel]\(/engine/7000.0/script-reference/unity/animations/localtranslationchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(StringHash, LocalRotationChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out LocalRotationChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[LocalRotationChannel]\(/engine/7000.0/script-reference/unity/animations/localrotationchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(StringHash, LocalScaleChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out LocalScaleChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[LocalScaleChannel]\(/engine/7000.0/script-reference/unity/animations/localscalechannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(StringHash, FloatChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out FloatChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[FloatChannel]\(/engine/7000.0/script-reference/unity/animations/floatchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(StringHash, IntChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out IntChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[IntChannel]\(/engine/7000.0/script-reference/unity/animations/intchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).

## TryGet(StringHash, EntityIdChannel)

Gets the skeleton node that has an identifier.

```csharp
public bool TryGet(StringHash id, out EntityIdChannel channel)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The [SkeletonNode.Id](/engine/7000.0/script-reference/unity/animations/skeletonnode/id.md) of the node to get.**** (\[EntityIdChannel]\(/engine/7000.0/script-reference/unity/animations/entityidchannel)):&#x20;

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the builder has a node with the identifier. Otherwise, false. |

### Remarks

Use this method to read the default values of a bone. To change them, use [RigBuilder.TrySetBoneDefaultTranslation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaulttranslation.md), [RigBuilder.TrySetBoneDefaultRotation](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultrotation.md), and [RigBuilder.TrySetBoneDefaultScale](/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md).
