Hide gameObject in field of view
Hi everyone,
I need to hide the gameObjects (of the environment) that are in my field of view and blocking the view to important gameObjects. I already tried to use raycasts from my camera to the gameObjects that need to be seen and checks if there is an environment object in the way. But this costs a lot of resources and it's not really effective since I only draw one raycast per important object (to the center). I need to see the important object entirely...
Do you have a better approach ?
Your answer
Follow this Question
Related Questions
When going to a new scene, set gameObject position to its current co-ordinates. 1 Answer
GameObjects not appearing in scene view unless I zoom far out 0 Answers
CHANGING SCENE AND MAKE A GAME OBJECT ACTIVE THERE 0 Answers
Revers Object Transfrom using an array problem in UI !! 0 Answers
Turn on object exclusion automatically 0 Answers