# Configuration: Terrain Scanner

There is a Terrain Scanner script attached to the TerrainScanner prefab.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdh5Vj31Llrz34DYfomi5gmkvSU8iYWiu9EVCu-jNN4uTE13Nm7F56bgc78YPGOyKAw8wGSauNEW37rtMmNsnmqQPejV3HDeVIBXKcENnKXoMwwGdJY0394yR7vlczu8qBhwPQE6c3evNrsOcL-VXms92Kw?key=647kYnNU_pMtzI-3LSMfyA" alt=""><figcaption></figcaption></figure>

Use this script to modify the properties of the scanner. You can define the duration/ lifetime of the scanner, the start and the end scale. Since the scanner uses a sphere mesh, the x, y and z scale will always be the same. You can also define a scale curve to manipulate the scale speed over time.\
With the current curve,  the scanner scale increases fast in the beginning and slows down towards the end until it reaches the defined endscale.\
You can also specify a Fade curve which will make the scanner effect fade out near the end of the lifetime.

\
On the Main Camera gameobject you have a Terrain Scanner Controller script attached:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuD2uZlqL5oIdYh_XuJOfNAZjch00cAVjUV1kMggCd8vMWy3ZEb07ynAoPssGN3pbLua-5SqHF_6Max9keodzteDhhfw47Pml-fxpoiQ1qRTX78GYW3cKbA1FOI4klBnlhZM9kExTKGyZJ6NoOb-0kwx0?key=647kYnNU_pMtzI-3LSMfyA" alt=""><figcaption></figcaption></figure>

The **y spawn offset** of 4 means that the scanner spawn position will be the camera position but minus 4 in the y axis. So if the camera position is e.g. (2,8,2) the spawn position of the scanner will be (2,4,2).\
By checking **overwrite spawn pos**, the scanner will always spawn on the overwritten position, independent of the camera position. You can also **spawn multiple scanners** at one by configuring the spawn amount. If you spawn more than 1 scanner you can define the wait time in between the spawns.

In the Prefabs folder you can find a couple of preconfigured Terrain scanners.\
Just place them in the Scanner prefab property of the Terrain Scanner controller to use them!

\
