I have seen threads asking this but the solutions in them didn't work for me. So how can i check if my main camera can see some of a cube by object using C#?
Hi, i think that i'm working on nearly the same... http://forum.unity3d.com/threads/222326-AI-Sight-(Go-away-from-Line-of-Sight) I wanted to know which parts of the Objects can be seen... Maybe you can use this after a few modifications...
http://wiki.unity3d.com/index.php?title=IsVisibleFrom note this only determines wether the object is in the cameras view frustum, not if its actually visible as it can still be occluded by other objects.