- Home /
Visually representing enemy cone of vision without Unity Pro?
edit: I should mention that I'm doing this in Unity 4.
I'm working on a top down shooter in which the player will try to avoid being spotted by the guards. edit: the guards walk around and chase after the player if they spot him. I have successfully coded the guards' vision so they spot the player correctly, but I'm having trouble accurately representing the guards' vision to the player. My idea was to have a spotlight attached to the guard that has the same range and angle as his view. The problem is without Unity Pro, I can't do shadows or deferred lighting. Does anyone have any suggestions? It actually wouldn't be the end of the world if I needed to give up on visible lines of sight, the game is shaping up to be more of a shooter than a stealth game anyway. I just want to see if I've missed something pretty straightforward that could get the job done. Thanks!
Answer by Notter · Jun 08, 2015 at 08:56 AM
In the unity stealth tutorial they do something similar with CCTV cameras each camera has a "vision cone" represented by a custom shape with a collider.
then they use a spotlight to represent the area of vision on the ground. but i think you can also adjust the collider object to look as if the area is dangerous.
Answer by applemaniac · Jun 08, 2015 at 08:56 AM
With Unity 5 you don't need Pro to do what you want anymore.
I have already done a ton of work on this project and I actually don't have much left to do. Is it possible to move it to Unity 5? And how competent would I need to be to do that?
just copy your project, download Unity 5 and try. It didn't change much you'll see, some core improvements and some pro features in the free version.
@applemaniac It can't hurt to try I guess. Thanks and I hope it works out.
Your answer
![](https://koobas.hobune.stream/wayback/20220613200714im_/https://answers.unity.com/themes/thub/images/avi.jpg)