Camouflage¶
The Camouflage component can be attached to any game object in order to dampen its visibility when observed by other Perception components.

The Sight Damping field is a value (0.5 by default) that is subtracted from the resulting visibility of this game object when it is observed by a Perception component. The visibility of an object inside the primary vision cone is 1, so a Sight Damping of 1 (or more) makes the object completely invisible.
Camouflage Calculation
Let's say an enemy is tracking the Player character and it's inside its primary vision cone. This means that the enemy will fully see the player if the light conditions are sufficient, so the resulting visibility of the player is 1.
If the player has a Camouflage component with a Sight Damping value of 0.25, the resulting visibility of the player will be 1 - 0.25 = 0.75. This means that the enemy will increase its awareness of the player at 75% of its Detection Speed. If the Sight Damping was 1 or higher, the player would be invisible to the enemy.
Dynamic Camouflage
Because the Sight Damping value is a dynamic property, you have the flexibility to create a wide variety of game mechanics.
- You can bind the value to a Local Variable to turn on or off their invisibility skill.
- You can also bind the property to a Stat to increase their stealth skill as the player levels up.
- You can bind it to the player's movement, so that when it's standing still the player is less visible than when moving.