# maxBonesPerVertex

> The maximum number of bones per vertex stored in this mesh data.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public int maxBonesPerVertex { get; set; }
```

### Remarks

Range: 1 - 255, inclusive. Note that higher bone counts may have a performance cost, especially above 4 bones per vertex.

This setting affects the underlying mesh data; vertices with more than this number will have the lowest weighted bones discarded.

You can limit the number of bones that Unity takes into account when performing skinning using the [QualitySettings.skinWeights](/engine/6000.3/script-reference/unityengine/qualitysettings/skinweights.md) and [SkinnedMeshRenderer.quality](/engine/6000.3/script-reference/unityengine/skinnedmeshrenderer/quality.md) APIs. Note that these settings do not affect the underlying mesh data.

Additional Resources: [ModelImporter.minBoneWeight](/engine/6000.3/script-reference/unityeditor/modelimporter/minboneweight.md), [QualitySettings.skinWeights](/engine/6000.3/script-reference/unityengine/qualitysettings/skinweights.md), [SkinnedMeshRenderer.quality](/engine/6000.3/script-reference/unityengine/skinnedmeshrenderer/quality.md).
