> For the complete documentation index, see [llms.txt](https://travljen.gitbook.io/unit-formation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://travljen.gitbook.io/unit-formation/how-it-works/placement-visuals.md).

# Placement Visuals

Detailed information about how visuals are shown to the player and how to create your own.

## Intro

These features are optional and placement is possible without any visuals.

## Provided visuals

### Direction Line

Using the provided <mark style="color:blue;">**LinePlacementVisual**</mark>**&#x20;component**, you can render direction with **LineRenderer** with two points, start and finish. The component only manages the renderers state, for customisation of line visuals, configure **LineRenderer** component to change its thickness, material, shadow and more.

<figure><img src="https://373113018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO5oY9g3h48cclwOChrGD%2Fuploads%2FbD11cYZMkd9PBaKYNR9e%2Fezgif-7-b8614f6a5b.gif?alt=media&amp;token=25c5aef5-b16c-495a-a4ef-b3c63440b347" alt="" width="450"><figcaption><p>Add Line Placement Visual</p></figcaption></figure>

### Formation Positions

When <mark style="color:blue;">**UnitPlacement**</mark> has enabled `alwaysCalculatePositions`, then you can also use <mark style="color:blue;">**FormationIndicatorVisual**</mark>**&#x20;component** to show positions of unit formation while player is placing the new position and direction of the formation.&#x20;

To use this component you need to specify:

* **Unit Indicator Prefab** used for unit position indicator in a formation
* **Hide with delay** enable and specify **delay** if formation indicators should persist after placement is no longer active.

<figure><img src="https://373113018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO5oY9g3h48cclwOChrGD%2Fuploads%2FM0hnu7nBS6P6qny7MR9M%2Fimage.png?alt=media&amp;token=ddc0445c-99be-4e9a-bf8e-a1dc930e2adb" alt="" width="563"><figcaption><p>Formation Indicator Visual</p></figcaption></figure>

## Customisation

<mark style="color:blue;">**APlacementVisuals**</mark> is a component for utilising visuals when placing a formation in world environment with <mark style="color:blue;">**FormationPlacement**</mark>. This can be extended to support any type of visuals.&#x20;

Look for <mark style="color:blue;">**APlacementVisuals**</mark> in project to get full information about how this one communicates with the placement component. Once you implement your own, add it to the list of visual renderers on <mark style="color:blue;">**FormationPlacement**</mark> component and you're good to go!
