- Home /
Question by
drok0920 · Jul 02, 2015 at 09:52 PM ·
cameracamera viewportsee
Find what a camera/gameobject "sees"?
I need to know how to get what a gameobject "sees". By this i mean that if it were a player with a camera what would the camera render.
Thanks in advanced.
P.S. The camera attached to that gameobject will never actualy render anything.
Comment
Your question is somewhat confusing. Why not just give the object a camera component?
If you want to check if a gameObject has a direct line of sight to another, you can use a ray check. With that approach you can even set a distance to the ray so you only check say... 500 units away.
Your answer