I made a generated 'pie' mesh for Unity for games that require the view 'cone' of their AI to be visible in-game or in a mini-map
One script generates the view mesh which can change in runtime, this includes correct UV generation and following geometry as an option.
There is a second script that can be used as the actual detector that can be synchronized with the view model or not. I think it is ideal for stealth games with a map like Commandos or Metal Gear Solid
Unity view cone detector Ai view angle visualization