# Drawing an AI's Line of Sight

## Drawing an AI's Line of Sight

The Draw Line of Sight Lines draws an AI's line of sight towards its Enemy or Look At Target when within the [Scene View](https://docs.unity3d.com/Manual/UsingTheSceneView.html). This is indicated by a green line, which means the AI has an unobstructed line of sight towards it.

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/0iD0CRZDpOvikFBo70zI/DrawLineOfSightTargetsEditor.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/fP4YiKYNKinCcDeHq9N2/DebugLineOfSight.png" alt="" width="563"><figcaption></figcaption></figure>

If an AI's line of sight line is red, it means that there is a current obstruction between it and its target.

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/Tns1EAuXtUmkSzyscK6k/DebugLineOfSightObstructed.png" alt="" width="563"><figcaption></figcaption></figure>
