> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/tasks/game-object/find-closest.md).

# Find Closest

Node description and basic instructions

### Description

Find closest game object at given pattern.

{% hint style="warning" %}
This task can cost performance if you call it every time. *See* [*Perception System*](/ai-tree/perception-system/quick-start.md)*.*
{% endhint %}

**To create it**, right-click in the editor and select <mark style="color:purple;">Create Node/Tasks/Game Object/Find Closest</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FYvTGnucDe9TLNQA40DT3%2Fimage.png?alt=media&amp;token=fc62999d-9994-42fd-988e-c5d1ebdd801c" alt=""><figcaption></figcaption></figure>

### Fields

| Name              | Description                               |
| ----------------- | ----------------------------------------- |
| Node Name         | Name of node.                             |
| Ignore About Self | Whether node ignores abort self or not.   |
| Store Result      | Store Transform reference of gameobject.  |
| Store Distance    | Store Vector3 distance of closest object. |
| Relative Object   | The object to search for.                 |
| With Name         | Object name.                              |
| With Tag          | Objects with tag.                         |
| Ignore Owner      | Ignore if overlap self.                   |
| Must Be Visible   | Overlap only visible object.              |
