# HumanTrait

> Details of all the human bone and muscle types defined by Mecanim.

## Definition

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

```csharp
public class HumanTrait
```

## Static Properties

| Property                                                                                         | Description                                                                |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| [BoneCount](/engine/6000.7/script-reference/unityengine/humantrait/bonecount.md)                 | The number of human bone types defined by Mecanim.                         |
| [BoneName](/engine/6000.7/script-reference/unityengine/humantrait/bonename.md)                   | Array of the names of all human bone types defined by Mecanim.             |
| [MuscleCount](/engine/6000.7/script-reference/unityengine/humantrait/musclecount.md)             | The number of human muscle types defined by Mecanim.                       |
| [MuscleName](/engine/6000.7/script-reference/unityengine/humantrait/musclename.md)               | Array of the names of all human muscle types defined by Mecanim.           |
| [RequiredBoneCount](/engine/6000.7/script-reference/unityengine/humantrait/requiredbonecount.md) | The number of bone types that are required by Mecanim for any human model. |

## Static Methods

| Method                                                                                                               | Description                                                                               |
| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [BoneFromMuscle](/engine/6000.7/script-reference/unityengine/humantrait/bonefrommuscle.md)                           | Return the bone to which a particular muscle is connected.                                |
| [GetBoneDefaultHierarchyMass](/engine/6000.7/script-reference/unityengine/humantrait/getbonedefaulthierarchymass.md) | Gets the bone hierarchy mass.                                                             |
| [GetMuscleDefaultMax](/engine/6000.7/script-reference/unityengine/humantrait/getmuscledefaultmax.md)                 | Get the default maximum value of rotation for a muscle in degrees.                        |
| [GetMuscleDefaultMin](/engine/6000.7/script-reference/unityengine/humantrait/getmuscledefaultmin.md)                 | Get the default minimum value of rotation for a muscle in degrees.                        |
| [GetParentBone](/engine/6000.7/script-reference/unityengine/humantrait/getparentbone.md)                             | Returns parent humanoid bone index of a bone.                                             |
| [MuscleFromBone](/engine/6000.7/script-reference/unityengine/humantrait/musclefrombone.md)                           | Obtain the muscle index for a particular bone index and "degree of freedom".              |
| [RequiredBone](/engine/6000.7/script-reference/unityengine/humantrait/requiredbone.md)                               | Is the bone a member of the minimal set of bones that Mecanim requires for a human model? |
