---
title: TrySetBoneDefaultScale(int, float3)
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/trysetbonedefaultscale
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/rigbuilder/trysetbonedefaultscale.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:12:04.908Z
locale: en-us
---

# TrySetBoneDefaultScale(int, float3)

> Sets the default scale of the bone at a bone index.

## 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 bool TrySetBoneDefaultScale(int boneIndex, float3 scale)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The bone index of the node.**** (\[float3]\(/engine/7000.0/script-reference/unity/mathematics/float3)): The default scale, relative to the parent bone.

### 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, and the builder doesn't change. |

### Remarks

The default scale is the [SkeletonNode.LocalScaleDefaultValue](/engine/7000.0/script-reference/unity/animations/skeletonnode/localscaledefaultvalue.md) of the node. To get the bone index of a node from its identifier, use [RigBuilder.GetBoneIndex](/engine/7000.0/script-reference/unity/animations/rigbuilder/getboneindex.md).
