# BoneFromMuscle(int)

> Return the bone to which a particular muscle is connected.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public static int BoneFromMuscle(int i)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Muscle index.

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### Remarks

The bone and muscle indices used by this function are the same as those of the [HumanTrait.BoneName](/engine/6000.5/script-reference/unityengine/humantrait/bonename.md) and [HumanTrait.MuscleName](/engine/6000.5/script-reference/unityengine/humantrait/musclename.md) arrays respectively.
