# slopeLimit

> The character controllers slope limit in degrees.

## Definition

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

```csharp
public float slopeLimit { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Set the controller slope limit to 45 degrees
    CharacterController controller;

    void Start()
    {
        controller = GetComponent<CharacterController>();
        controller.slopeLimit = 45.0f;
    }
}
```
