Configuration: Terrain Scanner
There is a Terrain Scanner script attached to the TerrainScanner prefab.
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:
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!
Last updated