> For the complete documentation index, see [llms.txt](https://gley.gitbook.io/mobile-pedestrian-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gley.gitbook.io/mobile-pedestrian-system/complete-api/enableallwaypoints.md).

# EnableAllWaypoints

### Description

Enable all disabled area waypoints.

### Declaration

```csharp
public static void EnableAllWaypoints()
```

### Example

```csharp
using Gley.PedestrianSystem;
using UnityEngine;

public class Test : MonoBehaviour
{
    // References to the pedestrian pool and player assigned in the inspector.
    public PedestrianPool pedestrianPool;
    public Transform player;

    // A reference to some camera.
    public Transform someCamera;

    void Start()
    {
        API.Initialize(player, 20, pedestrianPool);
    }

    public void DisableWaypoints()
    {
        // Disable all waypoints 20m around the player. 
        API.DisableAreaWaypoints(GameObject.Find("Player").transform.position, 20);
    }
    
    public void EnableWaypoints()
    {
        API.EnableAllWaypoints();
    }
}
```
