I have read through many threads about this topic. I tried the 2D Dynamic Lights and Shadow from the asset store. But it is all not what I am looking for. I would like to create a line of sight as seen in Teleglitch or a “fog of war” as seen in heroes of loot. Any good recources to do something like this?
Im pretty sure teleglitchs fog of war is just giant black towers above the terrain and with the high FOV camera between the towers it looks like things are being obscured
Set the ambient luminosity to complete black, so objects that are not in the light will not appear. You can then attach a light to your units and they will reveal the environment around them.
Play with the Z-value of your objects. If an object Z-value is higher than the camera position, it will not be seen. You can start with all your objects having a high Z-value (invisible) and set the Z-value to 0 when they are seen by a unit. This process can be accomplished using Raycasting with a specific distance that would represent the distance at which your unit see.