# LastLegDof

> The last value of the LegDof enum.

## Definition

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

```csharp
LastLegDof = 8
```

### Remarks

This value can be used in `for` loops.

### Examples

```csharp
using UnityEngine;

using UnityEngine.Animations;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        for (int i = 0; i < (int)LegDof.LastLegDof; ++i)
        {
            var handle = new MuscleHandle(HumanPartDof.LeftLeg, (LegDof)i);
            Debug.Log(handle.name);
        }
    }
}
```
