# Border

<figure><img src="/files/FGvKrigy6zYxzgOvgq7t" alt=""><figcaption></figcaption></figure>

## Preview

{% embed url="<https://youtu.be/WRrGKWQXfUE>" %}

You can also [create your own border](/3d-ranks/rank/border/create-new-border.md).

## Inspector

In the Customization Tab, you can edit the border and apply materials with an animated preview in play mode.

<figure><img src="/files/M6Jgz59l1qcmbdi5uyUd" alt="" width="563"><figcaption><p>Available Borders</p></figcaption></figure>

In the ranks tab, for each rank, you can quickly modify the border and material, too.&#x20;

You can also adjust some other settings. You can hover over the fields to check the tooltips if you need an explanation.

<figure><img src="/files/sRl3UDk2yxbKP9UGXFzL" alt="" width="488"><figcaption><p>Border Settings for individual ranks in Ranks List</p></figcaption></figure>

## Script Reference

You can use the SetIcon method to modify the icon via code or buttons.

```csharp
ranksAnimationController.SetBorder(i);
```

<table data-full-width="true"><thead><tr><th width="355.6666666666667">Method</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-csharp"><code class="lang-csharp">DisableBorder()
</code></pre></td><td>Removes border and inside.</td></tr><tr><td><pre class="language-csharp"><code class="lang-csharp">SetBorder(int newBorder,
 bool autoUpdateInside = true, 
 bool autoUpdateWingsPosition = true)
</code></pre></td><td>Updates the border with the currentRank's border animation setting.<br><br>Parameters:<br><br><strong>int newBorder</strong><br>Will disable the border if a negative value is passed as a parameter.<br><br><strong>bool autoUpdateInside = true</strong><br>If the current inside isn't viable for the new border, auto update will assign a new one.<br><br><strong>bool autoUpdateWingsPosition = true</strong><br>If wings are changed along with this, set it false so that this doesn't handle updating the position and changing wings updates that.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ferdowsur.gitbook.io/3d-ranks/rank/border.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
