# Configuration: Object Detection

For every object in the scene that you want to be detected by the terrain scanner, simply attach the LayerSwitcher script to it. Please also make sure that the gameobject has a Collider attached to it, and that's it!:)



**How the script works**:

Script will fire an OnTriggerEnter event when the terrainScanner hits the object. Then it will change the current layer of the object to LootObject.  This will activate the Render Object that you set up previously which is always visible, this means all scanned objects will be visible to your camera with a glow effect, even if they are hidden behind other objects.  After the default duration of 8 seconds the layers will be switched back to the previous one, disabling the glow effect again.

\
